Back

400 Bad Request behind HAProxy

  • 0
  • Self Hosted
Sage905
2 May, 2024, 21:07

I use HAProxy to frontend a bunch of dev servers, with SNI, as I have a single IP I can use. This worked fine on 1.5.1, but I just upgraded to 1.5.5, and now my locally hosted appwrite is responding with Bad Request errors. I'm pretty sure it's expecting a header that HAProxy is not sending, but I'm sending all the RFC7239 headers I can think of, and it's still not working. I can't seem to find the backend logs, even in dev mode, that would show me why I'm getting this error. Any suggestions?

TL;DR
Developers are getting 400 Bad Request errors behind HAProxy after upgrading from version 1.5.1 to 1.5.5. They suspect HAProxy might not be sending a required header to the locally hosted Appwrite, but they're unable to find backend logs to confirm this. Suggestions are needed to troubleshoot the issue. Make sure all RFC7239 headers are correctly configured.
Steven
2 May, 2024, 21:45

does browsing directly to appwrite work?

Sage905
2 May, 2024, 21:50

Yes

Steven
2 May, 2024, 21:51

What exactly is the full response body you're getting through ha proxy? You're not seeing anything in the docker logs for the appwrite container?

Sage905
2 May, 2024, 21:58

Nothing of note in any of the docker logs

Sage905
2 May, 2024, 21:59

I don't see any requests. Was hoping to find the equivalent of an nginx log or something

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more