R
Railway15mo 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
Percy15mo ago
Project ID: 1fd25b39-88d9-45c9-b56f-1a62c88aede1
Brody
Brody15mo ago
project id
inufe
inufe15mo ago
1fd25b39-88d9-45c9-b56f-1a62c88aede1
Brody
Brody15mo ago
so what technologies are involved in your project?
inufe
inufe15mo 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
Brody15mo ago
what do your metrics look like are you deploying to railway with nixpacks?
inufe
inufe15mo ago
inufe
inufe15mo ago
yes
Brody
Brody15mo ago
what version of node is it using?
inufe
inufe15mo ago
how I can know ?
Brody
Brody15mo 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
inufe15mo ago
nodejs-16_x, and Nixpacks v1.13.0 just on PENDING status
Brody
Brody15mo ago
what is pending, please be more specific
inufe
inufe15mo ago
now the service is working on the second time when it shows I will see the status more specific
Brody
Brody15mo ago
okay
inufe
inufe15mo ago
As you see the endpoint is pending , when I restart the server it's working
Brody
Brody15mo ago
what type of request is that? get, post, websockets?
inufe
inufe15mo 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
inufe15mo ago
yes
Brody
Brody15mo ago
is there anything in the error logs when that happens?
inufe
inufe15mo 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