pedrojlazevedo / twitch-chatgpt

ChatGPT Implementation for Twitch Streamers
67 stars 1.63k forks source link

Remote Server Returned Code 500 #17

Closed vanyaindigo closed 8 months ago

vanyaindigo commented 1 year ago

Hi, I can't recieve answers from the bot except: Remote Server Returned Code 500. At the Cyclic app's log section I've got huge err log with this lines at the end:

2023-06-15 13:47:17.395: 

ERROR: Failed to run "npm run start". Start script defined in package.json:

            "scripts": {
                "start":  "node index.js"
                 ...

Exited with code: 1
2023-06-15 13:47:17.395: [CYCLIC] ERROR: No response from server on port 3000
Jpsxxraucher commented 1 year ago

I get the same issue

Jpsxxraucher commented 1 year ago

I was trying to follow the trace it makes with the setup

first of all: everything is setup right. I got an aknowledgement from openAI that this API-key is in use. I know the deployment is working because i see the errors in my logs and the command i entered into the bots(i tested both of them) gave the same error message back. when i was looking into my openAI account closly i recognized I already created an account and my trialtime was over so this was the zero server response :D It would be nice if this specific case is catchable in a more resonable error message than just a simple 500 error because this is just a normal server error code. I have to confirm it still helped me to figure out the problem somehow because i recognized the server openAI didnt response to this project :D

I hope this also helps you vaniandigo

much love

jpsxxraucher

karobelle commented 1 year ago

EDIT: trial account was close to expiring. added a credit card and works again

I am also getting "Error Connecting To Remote Server", "Remote Server Returned Code 500" from Nightbot, and "Could not connect to remote server" from StreamElements. My cyclic logs mostly look fine and show the reply, but it does not make it to twitch chat. I see nightbot requests, posts error, and the ai bot replies in the log afterwards just fine. Timing issue? I once saw a 404 in /favicon.ico, for some reason. "Cannot GET /favicon.ico"..

pedrojlazevedo commented 1 year ago

@karobelle, yes, nightbot has 10seconds timeout and sometimes we are not able to retrieve the response for some questions... :( That's something that we are aware of and we will be working on a solution soon.

The solution is not easy since it would require to move away from nightbot/streamelements.

I hope next month to have some update on it.

proximasix commented 11 months ago

I see "Error Connecting To Remote Server" message from NightBot everytime when it trying to make a long respond which needed to slice. This can be seen in the logs on Cyclic. The problem is that no matter how hard I try to limit the messages that the bot formulates, it still sometimes makes them longer than normal.

pedrojlazevedo commented 8 months ago

@proximasix the most recent update fixes the issue by deploying in RENDER.

Please read the README.md to know how to properly setup everything :)