[examples/with-firebase-hosting] Gateway error on POST requests #17225
Unanswered
masonlouchart
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
I get a “502 Gateway” error from NextJs app hosted on Firebase for POST requests.
Describe the bug
I started to build an API using NextJs framework. I want it to be hosted on Firebase (Hosting and Functions). Everything is working as long as I send only GET requests. When I send a POST request I receive a "502 Bad Gateway" error.
To Reproduce
Download and deploy the example provided.
Expected behavior
The POST request should be answered with
200 - Method POST is supported!
.Screenshots
Additional context
https://stackoverflow.com/questions/63968953/why-do-i-get-a-502-gateway-error-from-nextjs-app-hosted-on-firebase-for-post-r#comment113117374_63968953
Beta Was this translation helpful? Give feedback.
All reactions