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
Project ID:
787c7793-8a1b-4119-90e8-05d5e48701f4
Project id: 787c7793-8a1b-4119-90e8-05d5e48701f4
is it running on the right port?
app error rather than a railway error looks like
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:
what endpoint are you trying locally vs here?
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
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
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.
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
their API is responding just fine, no need for this.
Wait you have sent requests to it and it was working??
your app is returning 404, not railway
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?
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: