Every request is received as GET request
Hi everyone. Just deployed my first project with Node JS and Mongo DB. It works correctly on local but once I made any request the server receives it as a GET request, no matters on the type of the petition. My railway repo is: elestandartebackend-production.up.railway.app and my github repo is: https://github.com/antogonza/ElEstandarteBackend
Also adding some images to prove it.
Thank you!
GitHub
GitHub - antogonza/ElEstandarteBackend: Api REST para la aplicación...
Api REST para la aplicación móvil de El Estandarte - GitHub - antogonza/ElEstandarteBackend: Api REST para la aplicación móvil de El Estandarte
8 Replies
Project ID:
b46047f6-ceef-4216-a429-8a7e88e1a3ba
You might find these helpful:
- PUT request sending as GET request
- Help migrating Node & Express API from heroku to Railway
- Migrating MERN app from heroku to railway
⚠️ experimental feature
b46047f6-ceef-4216-a429-8a7e88e1a3ba
this sounds like an issue on your part. we dont modify incoming requests
i was able to get your code working how you would expect, but all i did was comment out messy code until it ran on my computer then uploaded it to railway. so in short, it needs some major major refactoring
While what I said above is still true, the real reason was because you where sending the post request over http and not https
That worked! Thank you!