Page active but server respond with 502
jfpa11100
TRIALOP

a year ago

I´m deploying an angular v18 page and the build and deploy logs appear to be correct but when i go to the link of the page i get an 502 error of bad gateaway.

This is what appears:

Application failed to respond

This error appears to be caused by the application.

If this is your project, check out your deploy logs to see what went wrong. Refer to our docs on Fixing Common Errors for help, or reach out over our Help Station.

If you are a visitor, please contact the application owner or try again later.

This is my github repo: https://github.com/jfpa11100/Inventory-Page.git

Any help I can get i appreciate it a lot.

Solved

14 Replies

a year ago

Angular 18 client side rendered for server side rendered?


jfpa11100
TRIALOP

a year ago

Angular 18 client side rendered for server side rendered?

Is client side rendered, its just that I'm connected to supabase a postgre dabase host, so i need to do requests to that server


a year ago

Client side rendered sites can not connect to databases.


jfpa11100
TRIALOP

a year ago

What do you suggest that i can do?

If I migrate to an angular project with server side rendering it should work?

And why it works in my pc but not in the web? (Probabliy a silly question but Im kinda new in this topic) and why it doesn't show any errors in the build or the deploy logs?


a year ago

If you are connecting to a database, it will need to be server side rendered, so yeah go that route.


jfpa11100
TRIALOP

a year ago

But supabase is in the cloud, it would be like a backend, i just do requests to it


a year ago

Okay, gotcha, that wasn't explained too well.

Please share your repo so I can advise the needed changes.


jfpa11100
TRIALOP

a year ago


jfpa11100
TRIALOP

a year ago

I also got this erros if are of any help:

Stopping Container

level:"info"

npm ERR! path /app

npm ERR! command failed

npm ERR! signal SIGTERM


a year ago

Made a PR - https://github.com/jfpa11100/Inventory-Page/pull/8

Merge it and remove the build and start commands from your service settings.


jfpa11100
TRIALOP

a year ago

I did it but i still got the 502 status

Application failed to respond

This error appears to be caused by the application.

If this is your project, check out your deploy logs to see what went wrong. Refer to our docs on Fixing Common Errors for help, or reach out over our Help Station.

If you are a visitor, please contact the application owner or try again later.

Request ID:
NtnQV7hHR_yg5TzZrqgOEg_3165824431



jfpa11100
TRIALOP

a year ago

Ohh it was that. I had to put it in the port 8080.

Brody I really appreciate your help. Thank you.


a year ago

No problem!


Status changed to Solved brody over 1 year ago


Loading...