Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The gpt request fails #11

Open
ghtg opened this issue May 7, 2023 · 0 comments
Open

The gpt request fails #11

ghtg opened this issue May 7, 2023 · 0 comments

Comments

@ghtg
Copy link

ghtg commented May 7, 2023

When I start the server and client everything works fine. I log in to the account successfully and as soon as I send the first message to chat, the server crashes. This is what it looks like in the console:
npm run server

[email protected] server
node index.js

Example app ready
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "function Error() { [native code] }".] {
code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v19.1.0

After the 'Example app ready' line you can see the error that throws after i press 'Enter' in the chat page with message 'hi'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant