Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. N8N
  3. Someone else with ValidationError for https://express-rate-limit.github.io/ ?

Someone else with ValidationError for https://express-rate-limit.github.io/ ?

Scheduled Pinned Locked Moved Solved N8N
2 Posts 2 Posters 2.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • luckowL Offline
    luckowL Offline
    luckow
    translator
    wrote on last edited by
    #1

    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

    Pronouns: he/him | Primary language: German

    1 Reply Last reply
    2
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @luckow thanks for reporting, I think https://git.cloudron.io/packages/n8n-app/-/merge_requests/64 should fix it

      1 Reply Last reply
      0
      • girishG 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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search