react-native-ai
react-native-ai copied to clipboard
Type error on server console. (No response on iOS client). Using gpt3.5 turbo)
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 just tested and seems to be working for me, did you configure your API key correctly in a .env file?
I'm pretty sure I did that. I'll double check it again and get back.
@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')
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.