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
Percy
Percy2y ago
Project ID: b46047f6-ceef-4216-a429-8a7e88e1a3ba
antogonza1
antogonza1OP2y ago
b46047f6-ceef-4216-a429-8a7e88e1a3ba
milo
milo2y ago
this sounds like an issue on your part. we dont modify incoming requests
Brody
Brody2y ago
Brody
Brody2y ago
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
Percy
Percy2y ago
Hey <@640898980762615858>, Please link your discord account to railway.
antogonza1
antogonza1OP2y ago
That worked! Thank you!
Want results from more Discord servers?
Add your server