Sorry, check with the site admin for error: ENAMETOOLONG

We are switching a website (front end ReactJS) from nginx to caddy, every things works great however one errors has occured that never occured with nginx. It says:

Sorry, check with the site admin for error: ENAMETOOLONG …

It occurs, when we try to reach a URL with an access token. I know that we can avoid this practice by shortening the URL but I’m trying to fix the problem the easiest way which is caddy.

So my question is, is there a configuration to allow URL’s to be too long ?

my current caddy file:

www.takiacademy.me {
  proxy / localhost:3000
  log /root/caddy_log
  errors /root/caddy_errors
}

takiacademy.me {
  redir https://www.takiacademy.me{uri}
}

To be honest, I didn’t even think Caddy had a URL-too-long error…

Is there anything about this in /root/caddy_errors?

After some researches I found that it is linked with directly with system capacity.

System capacity? Is it host-specific, then? Did you also change host when you tried Caddy? And what kind of capacity are we talking about? I’m powerfully curious, now. Like I said, I don’t think I’d ever seen that one before.