I have a simple NodeJS server that has two POST routes. When I make POST requests from Postman, I see in the logs that the requests come through as GET requests to my deployed Fly application. However, the same requests work fine when running my app locally.
I’m new to Fly and I’m hoping I’m just missing something simple, any help would be appreciated.
Hey! It’s hard to tell what could be happening without seeing the code or setup, what does your dockerfile and fly.toml file look like?
I’m currently having the same issue. Did you manage to solve it eventually?
That’s very weird.
If you can reproduce the issue reliably, can you try with this header:
flyio-debug: doit and respond here with the
fly-request-id header. We can then look up a trace and possibly figure out what’s happening.
I have the same error with an axum app, the post request from Postman is turned into a get request, but everything work fine locally.
That was a Postman error. I forgotten the “https://” at the begining of the url and the request returned a 301 that redirected to the location with https, but posman follow every redirect with a get
Thanks for this! Same thing happened for me using Retrofit and Insomnia.