Someone else with ValidationError for https://express-rate-limit.github.io/ ?
-
io.n8n.cloudronapp@3.82.0
May 08 11:23:51 ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information. May 08 11:23:51 at /app/code/node_modules/express-rate-limit/dist/index.cjs:704:5 { May 08 11:23:51 at /app/code/node_modules/express-rate-limit/dist/index.cjs:724:32 May 08 11:23:51 at Object.keyGenerator (/app/code/node_modules/express-rate-limit/dist/index.cjs:671:20) May 08 11:23:51 at Object.wrappedValidations.<computed> [as xForwardedForHeader] (/app/code/node_modules/express-rate-limit/dist/index.cjs:398:22) May 08 11:23:51 at Object.xForwardedForHeader (/app/code/node_modules/express-rate-limit/dist/index.cjs:187:13) May 08 11:23:51 code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR', May 08 11:23:51 help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/' May 08 11:23:51 }It looks like adding
export N8N_PROXY_HOPS=1to env, solved the problem. I did this from https://community.n8n.io/t/x-forwarded-for-header-is-set-but-the-express-trust-proxy-s/51208/7 -
G girish has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login