Not Found.

hey guys, I recently created my own API using Railway to deploy it. It's written in Python. I also connected my domain to it. I've waited like 1 hour and restarted it and redeployed it and it still shows up as not found. Help? https://dragonapi.bluedragon.dev
24 Replies
Percy
Percyβ€’2mo ago
Project ID: 787c7793-8a1b-4119-90e8-05d5e48701f4
π•­π–‘π–šπ–Šπ•―π–—π–†π–Œπ–”π–“
Project id: 787c7793-8a1b-4119-90e8-05d5e48701f4
BillyDotWS
BillyDotWSβ€’2mo ago
is it running on the right port?
BillyDotWS
BillyDotWSβ€’2mo ago
app error rather than a railway error looks like
No description
Brody
Brodyβ€’2mo ago
super common for APIs to not have routes at the root, what is the actual issue you are experiencing
π•­π–‘π–šπ–Šπ•―π–—π–†π–Œπ–”π–“
I am quite new to railway so I have no idea I will attach a screenshot however thanks for your help
π•­π–‘π–šπ–Šπ•―π–—π–†π–Œπ–”π–“
When I try to use it on my projects it responds with 404 not found It's an API for AI models Works fine on my local machine. Maybe it is a code issue on my end. Will check that out thanks for these helpful responses :neonheart:
BillyDotWS
BillyDotWSβ€’2mo ago
what endpoint are you trying locally vs here?
Brody
Brodyβ€’2mo ago
please try your best to answer my question
π•­π–‘π–šπ–Šπ•―π–—π–†π–Œπ–”π–“
Locally I am just using port 5000 or something And then here I am using https://dragonapi.bluedragon.dev
BillyDotWS
BillyDotWSβ€’2mo ago
which endpoint? What are you putting after the domain?
π•­π–‘π–šπ–Šπ•―π–—π–†π–Œπ–”π–“
What do you mean? The 5000 domain? Ohhh https://dragonapi.bluedragon.dev I am just using this plainly no /v1/response or anything
BillyDotWS
BillyDotWSβ€’2mo ago
and you don't have like: dev/local vs prod profile that'd disable a landing page on a prod server?
π•­π–‘π–šπ–Šπ•―π–—π–†π–Œπ–”π–“
Nope. I have no clue what you are talking about I am quite new to this I am very very sorry. I can send you my code in DMs if you would like.
BillyDotWS
BillyDotWSβ€’2mo ago
nono, that's fine. Have you set to run on the PORT env var and created that env var? https://docs.railway.app/guides/public-networking
Railway Docs
Public Networking | Railway Docs
Documentation for Railway
Brody
Brodyβ€’2mo ago
their API is responding just fine, no need for this.
π•­π–‘π–šπ–Šπ•―π–—π–†π–Œπ–”π–“
Wait you have sent requests to it and it was working??
Brody
Brodyβ€’2mo ago
your app is returning 404, not railway
BillyDotWS
BillyDotWSβ€’2mo ago
https://dragonapi.bluedragon.dev/api returns a 405, so I'm going to guess that's an endpoint and things are working fine if you hit it (or the other endpoints) via insomnia/postman
π•­π–‘π–šπ–Šπ•―π–—π–†π–Œπ–”π–“
Amazing. Thank you so much. I will try this out! I can use python to send requests to it right?
BillyDotWS
BillyDotWSβ€’2mo ago
any tool that sends requests, yes
π•­π–‘π–šπ–Šπ•―π–—π–†π–Œπ–”π–“
Awesome. Thank you again. Have a good rest of your day/night
π•­π–‘π–šπ–Šπ•―π–—π–†π–Œπ–”π–“
@BillyDotWS just wanted to follow up, it is working, i appreciate your help so so much. :neonheart:
No description
Want results from more Discord servers?
Add your server