R
Railway4mo ago
Hasan

Golang fiber template stops after successful deploy

I am using golang fiber template in go version 1.22.3. It is a standard fiber http server. After a successfull deploy, it starts to run and immediately container is stopping and returns 502.
Solution:
your domain is pointing to the wrong port
No description
Jump to solution
10 Replies
Percy
Percy4mo ago
Project ID: 0854d29d-7fb2-4708-91d5-771bf91d61e9
Hasan
HasanOP4mo ago
0854d29d-7fb2-4708-91d5-771bf91d61e9
Duchess
Duchess4mo ago
New reply sent from Help Station thread:
which docs section
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
The link is rendered in Discord.
You're seeing this because this thread has been automatically linked to the Help Station thread.
Hasan
HasanOP4mo ago
thanks, the link does not be seen in the help station. i found it I have add this part httpServer := fiber.New(fiber.Config{ Network: "tcp", ServerHeader: "Fiber" AppName: "My App", }) but still same, it says container stopping and returns 502
Brody
Brody4mo ago
Hasan
HasanOP4mo ago
i have added port checking but it is still same. Indeed it starts the fiber app. Shows count of handlers etc. But then it stops. deploy logs shows like it seems running, but when i go to logs tab at the left corner, it shows at the end "container stopping"
Solution
Brody
Brody4mo ago
your domain is pointing to the wrong port
No description
Hasan
HasanOP4mo ago
Thanks a lot, it works!
Brody
Brody4mo ago
no problem!
Want results from more Discord servers?
Add your server