Struggling to get subdomain working with Namecheap

b-e-a-fHOBBY

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"
}
Solved

0 Replies

b-e-a-fHOBBY

25 days ago

c74d4143-faff-4947-823a-6f31b414bdf5



b-e-a-fHOBBY

25 days ago

Oh it looks to be a bug


b-e-a-fHOBBY

25 days ago

I just set the port even though it was already set to 3000


b-e-a-fHOBBY

25 days ago

Seemed to fix the issue


echohackEMPLOYEE

25 days ago

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.


b-e-a-fHOBBY

25 days ago

So I set the port from 3000 -> 3000 and it fixed it


echohackEMPLOYEE

25 days ago

No the port wasn't set at all


b-e-a-fHOBBY

25 days ago

Oh apologies


echohackEMPLOYEE

25 days ago

I ran into this problem too because of the statefulness of the magic detection. No worries


b-e-a-fHOBBY

25 days ago

Just for context, the app was already deployed and then I set the custom domain.


echohackEMPLOYEE

25 days ago

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

echohackEMPLOYEE

25 days ago

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

echohackEMPLOYEE

25 days ago

Gonna mark this one as solved <:o7Jams:1220858997335265301>


echohackEMPLOYEE

25 days ago

!s


Status changed to Solved echohack 25 days ago


Struggling to get subdomain working with Namecheap - Railway Help Station