My api deployment is giving me 502 bad gateway

kalyanib996TRIAL

10 months ago

The logs are working fine. Not getting any error log.

Archived

18 Replies

10 months ago

Please send a link to your domain.


samirhajdarevic1PRO

10 months ago

I have the same problemThis is my domain https://invoices-api-production.up.railway.app/


10 months ago


azeez1776HOBBY

10 months ago

I tried following the same guide, I still get a blank screen and the api return 502 bad gatewayhttps://royalstable-api-production.up.railway.app/


10 months ago

I don't know where you are reading the 502 bad gateway front it's just a blank screen, please show me where you see the 502 bad gateway.


azeez1776HOBBY

10 months ago

Sure, I am seeing the 502 bad gateway when I make a post request with postman, and when I access the api using the browser I see a blank screen

Attachments


azeez1776HOBBY

10 months ago

Sorry forgot to add, when accessing the api via the browser, I should see a json with the health status of the api, but instead seeing a blank screen


azeez1776HOBBY

10 months ago

It works on render, but I prefer railway, so accomplishing this would be really great


10 months ago

I'm confident we can get you up and running.

What is {{API}} set to?

What kind of app is this?

It would be extremely helpful if you could share your repo.


azeez1776HOBBY

10 months ago

Sure, {{ API }} stands for https://royalstable-api-production.up.railway.app


azeez1776HOBBY

10 months ago

The repo is private, if you dont mind I can invite you so that you can take a look


10 months ago

My GitHub is brody192


azeez1776HOBBY

10 months ago

Done, invited you


10 months ago

Please attach your deployment logs - https://bookmarklets.up.railway.app/log-downloader/


azeez1776HOBBY

10 months ago

Hey brody, tried the instruction I saw at usage didnt work at my end, or should I just send you my logs right here


azeez1776HOBBY

10 months ago

Hey brody it finally worked , thanks man


10 months ago

What was the final solution?


azeez1776HOBBY

10 months ago

I made a dummy mistake, I was just building the project and not starting it, so after building it with yarn build I had to start the project with yarn start

Status changed to Archived azeez1776 10 months ago


10 months ago

Sounds good