dabit3 / react-native-ai

Full stack framework for building cross-platform mobile AI apps
https://nader.codes
MIT License
839 stars 111 forks source link

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

Open gopinaath opened 8 months ago

gopinaath commented 8 months ago

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)
dabit3 commented 8 months ago

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

gopinaath commented 8 months ago

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

tinsaeyohannes commented 7 months ago

@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 commented 2 months ago

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.