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=1
to 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