Skip to content
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

Fix validation error #30

Open
fanesz opened this issue Dec 12, 2024 · 0 comments
Open

Fix validation error #30

fanesz opened this issue Dec 12, 2024 · 0 comments

Comments

@fanesz
Copy link
Contributor

fanesz commented Dec 12, 2024

It happens on production log

9|portal_loker  | 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.
9|portal_loker  |     at Object.xForwardedForHeader (/project/portal_loker/backend/node_modules/express-rate-limit/dist/index.cjs:167:13)
9|portal_loker  |     at wrappedValidations.<computed> [as xForwardedForHeader] (/project/portal_loker/backend/node_modules/express-rate-limit/dist/index.cjs:362:22)
9|portal_loker  |     at Object.keyGenerator (/project/portal_loker/backend/node_modules/express-rate-limit/dist/index.cjs:617:20)
9|portal_loker  |     at /project/portal_loker/backend/node_modules/express-rate-limit/dist/index.cjs:670:32
9|portal_loker  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
9|portal_loker  |     at async /project/portal_loker/backend/node_modules/express-rate-limit/dist/index.cjs:650:5 {
9|portal_loker  |   code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
9|portal_loker  |   help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
9|portal_loker  | }
@fanesz fanesz converted this from a draft issue Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Empathize
Development

No branches or pull requests

1 participant