R
Railway16mo ago
inufe

Response Pending with OpenAI

Hi I have SAAS website running on Railway using OpenAI with Next js , the problem is the endpoint not responding after a couple of hours from restarting server but when I restart the server again the endpoint come back and run as excepted , I don't why I have to restart the server each time to make service running I got a lot of issues from my clients , each time they talked to me about the service is not there I restart the server then service it's working -_-
26 Replies
Percy
Percy16mo ago
Project ID: 1fd25b39-88d9-45c9-b56f-1a62c88aede1
Brody
Brody16mo ago
project id
inufe
inufeOP16mo ago
1fd25b39-88d9-45c9-b56f-1a62c88aede1
Brody
Brody16mo ago
so what technologies are involved in your project?
inufe
inufeOP16mo ago
Next js & OpenAI I deployed the website on another self-hosted and working fine for 2 months but with Railway I have to restart the server a lot to make endpoint work
Brody
Brody16mo ago
what do your metrics look like are you deploying to railway with nixpacks?
inufe
inufeOP16mo ago
inufe
inufeOP16mo ago
yes
Brody
Brody16mo ago
what version of node is it using?
inufe
inufeOP16mo ago
how I can know ?
Brody
Brody16mo ago
build table at the top of the build logs when you say not responding, can you be more specific? do you get a 404, 503, timeout?
inufe
inufeOP16mo ago
nodejs-16_x, and Nixpacks v1.13.0 just on PENDING status
Brody
Brody16mo ago
what is pending, please be more specific
inufe
inufeOP16mo ago
now the service is working on the second time when it shows I will see the status more specific
Brody
Brody16mo ago
okay
inufe
inufeOP16mo ago
As you see the endpoint is pending , when I restart the server it's working
Brody
Brody16mo ago
what type of request is that? get, post, websockets?
inufe
inufeOP15mo ago
POST with openAI
Brody
Brody15mo ago
whats the full url of that request that the browser makes
Brody
Brody15mo ago
and i assume thats the custom domain for your app
inufe
inufeOP15mo ago
yes
Brody
Brody15mo ago
is there anything in the error logs when that happens?
inufe
inufeOP15mo ago
no just pending
Brody
Brody15mo ago
what do the metrics look like when you get the pending thing
Want results from more Discord servers?
Add your server