-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading to v1.39.1 throws express-rate-limit Errors - CANNOT LOG IN TO UI #9295
Comments
More details about this issue are here: |
And also here: |
It looks like this is the code that's needed to be added to n8n: But I'm still trying to figure out where that equivalent code lives within the n8n codebase... |
So it looks like this param WAS declared here: And it's feature is anchored to the |
Okay, so there's an environment variable named |
Okay, I set |
Update: So apparently, changing Essentially, for some reason, my browser was using an old (cached?) set of credentials/cookies to access n8n. Because those credentials expired upon upgrade, the client-side code did NOT respect that expiration -- and the browser attempted to retry using that expired cookie. Because the browser kept trying to query n8n using expired credentials, express started throwing 429 errors (e.g., too many requests)... and that started happening even before I could properly log in to the UI to refresh my credentials/cookies. So, the ultimate solution was to hard restart Google Chrome browser, manually flush all local cookies, wait a little bit of time (?), and THEN try again. At that point, I was able to successfully log back into the N8N UI. Thankfully, all of these issues did NOT seem to impact current running workflows at the time, but it was an incredibly frustrating experience upgrading -- mainly because none of these issues appeared to be documented ahead of time. I want to upgrade n8n more often, but if this is how upgrades go, I don't think I can unless I set aside 2-3 hours to expect some sort of unexpected breakage. |
Ultimately, I think the open item with this issue is to somehow provide documentation about:
|
I think it is safe to close this issue as there isn't a bug here but there is a learning on the proxy_hops, Oddly enough the I suspect this could be triggered by a mix of the cache causing the lockout originally and the header issue being highlighted by another change. |
Hey @Joffcom -- makes sense -- could you guys at least update the n8n documentation (https://docs.n8n.io/hosting/) to explain what |
Bug Description
After upgrading to v1.39.1, I see this error thrown in the n8n logs:
When I try to login to the UI, I can't login because I see this error getting thrown:
So, I'm effectively LOCKED OUT of the UI, at this point.
I think this issue was caused by recently upgrading the
express
package in this commit, here:dc42ac1
To Reproduce
Expected behavior
I don't expect n8n to break when upgrading. Plain and simple.
I have no idea how to enable the "trust proxy" setting and I really wish this was documented in some sort of upgrade notes. I checked here: https://docs.n8n.io/release-notes/ and there was NO mention of this issue.
Operating System
Google Cloud Run
n8n Version
1.39.1
Node.js Version
18.16
Database
PostgreSQL
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: