Hey Paul,
Can you share the error message you received? It will help us debug better. I would suggest you check out this post and set the environment variable. Get Cookie After Login - #11 by jan
If you’re using n8n.cloud, you can roll back to v0.138.0, where you should not face the error