#Struggling to get subdomain working with Namecheap

16 messages · Page 1 of 1 (latest)

harsh schooner
#

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"
}
twin copperBOT
#

Project ID: N/A

gaunt notch
harsh schooner
#

Oh it looks to be a bug

#

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

#

Seemed to fix the issue

cinder pilot
#

Hey @harsh schooner

Looks like you didn't have a port configured on your custom public domain. I went ahead and fixed that for you. o7Rave

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.

harsh schooner
#

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

cinder pilot
#

No the port wasn't set at all

harsh schooner
#

Oh apologies

cinder pilot
#

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

harsh schooner
cinder pilot
#

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
#

Gonna mark this one as solved o7Jams

#

!s