I have just deployed 1.17.1 n8n image on AWS ECS.
The instance is up and running.
I have sent invite links but those links produce an “Issue validating invite token / Invalid invite URL”
Any ideas how to fix this issue ?
Thanks !
Information on your n8n setup
n8n version: 1.17.1
Database (default: SQLite): PostGreSQL
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker deployed on AWS ECS
Can you confirm how you are distributing the invite links? Are you sending them out via email or are you using the link provided by n8n when SMTP isn’t configured?
And can you confirm the link structure is https://$hostname/signup?inviterId=$uuid&inviteeId=$uuid (just to make sure that no email client has stripped out any relevant part)?
Lastly, is there any error in your server logs when running into this problem, for example this one?
I am asking because I just tried reproducing this problem using an n8n instance deployed through docker run -it --rm --name n8n -p 5678:5678 -v ~/.n8n:/home/node/.n8n n8nio/n8n:1.17.1, but didn’t run into any trouble with the invite link copied to my clipboard.
Hi @Jean-Baptiste_LANVIN, to narrow down the problem, can you remove the SMTP configuration from your environment variables (or config file), then re-deploy your n8n instance?
Afterwards, can you invite a new user? n8n should now copy the invite link to your clipboard rather than sharing it through email. If you test this invite link in a new incognito/private browser window, are you still running into the same problem?
Hi @MutedJam,
Sorry, maybe I was not clear enough but we don’t use SMTP configuration.
We are not sharing the invite links by email but just copying the links created by n8n.
Can you share your exact docker run commands (or better a combined docker compose config file) using which I can reproduce the problem on my end? So far my invitation links seem to work as expect.
Hi @Jean-Baptiste_LANVIN, I am afraid I am not familiar with ECS. Are you able to reproduce this locally? And does the problem persist with the current n8n version 1.18.0?
Same problem with n8n 1.20.0. After enabling debug-level logging, I found out that the invite links are generated incorrectly. The “inviteeId” and “inviterId” are the same.
After digging a little more I saw that the “inviteeId” is the value that is also used as “inviter”.
The logged message was: “Request to resolve signup token failed because the ID of the inviter and/or the ID of the invitee were not found in database”
Not sure if the links sent by e-mail are also incorrect since we use the “copy invite link” menu from the Users page and then send it manually.