25 days ago
I've removed and added the cname record several times. https://api.fritter.dev resolves but returns a 502 railway error
{
"status": "error",
"code": 502,
"message": "Application failed to respond",
"request_id": "g1EyeaMoQY-zM-uuvt8T-Q_3336177264"
}
0 Replies
25 days ago
Hey, have you tried reading through https://docs.railway.com/reference/errors/application-failed-to-respond?
Hey @Beaf
Looks like you didn't have a port configured on your custom public domain. I went ahead and fixed that for you.
We do some magic detection to add the port if your service is running, but I think you might have added your custom domain before your service was deployed.
I ran into this problem too because of the statefulness of the magic detection. No worries
Just for context, the app was already deployed and then I set the custom domain.
Your records are in good shape btw
nslookup api.fritter.dev
Server: 100.100.100.100
Address: 100.100.100.100#53
Non-authoritative answer:
api.fritter.dev canonical name = kd8tpl86.up.railway.app.
kd8tpl86.up.railway.app canonical name = edge.railway.app.
Name: edge.railway.app
Address: 66.33.22.4
Name: edge.railway.app
Address: 66.33.22.1
Name: edge.railway.app
Address: 66.33.22.2
Name: edge.railway.app
Address: 66.33.22.3
dig api.fritter.dev
; <<>> DiG 9.10.6 <<>> api.fritter.dev
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50140
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;api.fritter.dev. IN A
;; ANSWER SECTION:
api.fritter.dev. 1799 IN CNAME kd8tpl86.up.railway.app.
kd8tpl86.up.railway.app. 60 IN CNAME edge.railway.app.
edge.railway.app. 300 IN A 66.33.22.2
edge.railway.app. 300 IN A 66.33.22.1
edge.railway.app. 300 IN A 66.33.22.3
edge.railway.app. 300 IN A 66.33.22.4
;; Query time: 244 msec
;; SERVER: 100.100.100.100#53(100.100.100.100)
;; WHEN: Fri Apr 11 17:14:43 WEST 2025
;; MSG SIZE rcvd: 164
Status changed to Solved echohack • 25 days ago