Error 502 with Supabase client when using Nginx as a reverse proxy #29211
Unanswered
fullgream
asked this question in
Feature Requests
Replies: 1 comment
-
I've been fighting with this error. Thanks!!!! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
I encountered an issue with Supabase in my Next.js application when using Nginx as a reverse proxy. The application was returning a 502 error when attempting to set cookies with the Supabase client in the middleware. After investigating, it turned out that Nginx had limitations on header size and request timeouts, which caused the issue.
Steps to reproduce:
setAll
method in the middleware.Resolution:
The issue was resolved by increasing the
large_client_header_buffers
and timeout settings in Nginx config:Would it be possible to include a note in the documentation about this issue, or improve how Supabase interacts with proxy servers like Nginx in terms of header size and timeouts?
I hope this information helps someone.
Beta Was this translation helpful? Give feedback.
All reactions