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

Type error on server console. (No response on iOS client). Using gpt3.5 turbo) #8

Open
gopinaath opened this issue Jan 5, 2024 · 4 comments

Comments

@gopinaath
Copy link

gopinaath commented Jan 5, 2024

Fresh install. iOS client not responding keeps spinning. Node version 18.17.1.

App console eventually shows " ERROR Connection error: The network connection was lost."

Server console output below:

[1] [nodemon] restarting due to changes...
[1] [nodemon] restarting due to changes...
[1] [nodemon] restarting due to changes...
[1] [nodemon] starting `node dist/index.js`
[1] Server started on port 3050
[1] error:  TypeError: Cannot read properties of undefined (reading '0')
[1]     at /Users/.../rn-ai/server/dist/chat/gpt.js:73:46
[1]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@gopinaath gopinaath changed the title Type erron on server console. (No response on iOS client) Type erron on server console. (No response on iOS client). Using gpt3.5 turbo) Jan 5, 2024
@gopinaath gopinaath changed the title Type erron on server console. (No response on iOS client). Using gpt3.5 turbo) Type error on server console. (No response on iOS client). Using gpt3.5 turbo) Jan 5, 2024
@dabit3
Copy link
Owner

dabit3 commented Jan 16, 2024

@gopinaath just tested and seems to be working for me, did you configure your API key correctly in a .env file?

@gopinaath
Copy link
Author

I'm pretty sure I did that. I'll double check it again and get back.

@tinsaeyohannes
Copy link

@dabit3 I'm also getting this error on the server when using OpenAI's GPT gpt-3.5-turbo model (on Android): [1] error: TypeError: Cannot read properties of undefined (reading '0')

@edencakir
Copy link

I ran into this issue today and realized I didn't have the billing set up. Just add your credit card information and top up your balance.

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

4 participants