Having issues connecting to my docker file, also need help on how to trouble shoot the instance.
I'm creating and API, that should be hosted on port 8000. Having issue trouble shooting the railway instance, and connecting to the API.
33 Replies
Project ID:
N/A
Please state what issues you are running into
The API is not responding, and I want to check the container to know that everything is working correctly
The API is not respondinggoing to need more specifics than that are there any errors in the deployment logs?
I'm getting 405 errors
are you sure you are using https when calling the railway domain?
I think I'm calling https
http
dont run uvicorn with a file watcher
I need to take that off
yes, you also need to call the api with https
what turns off the file watcher
are you using https when calling the api?
I'm using https now it didn't go this far before
so it fixed a little of my issue.
please use https everywhere you make an api call
is there any way to get into the container to trouble shoot.
no, theres nothing wrong with the container, this is a code issue
I have one more question when I try to use the interal DNS it's not connecting to it?
please read this - https://docs.railway.app/guides/private-networking#initialization-time
I added the sleep function still getting it
is data.railway.interal in the same project?
Yes
show me how you have implemented the sleep
Can you have private and open network going at the same time?
when I to private network does it go to the correct port?
not with uvicorn you cant, you would need to use hypercorn for that
I noticed when I use extneral address it moved 8000 to port regular https port.
Getting this error when I try to connet to the internal network
as previously mentioned, you would need to use hypercorn, you would also need to specify the port in the url
you would need to install hypercorn