react-native-ai icon indicating copy to clipboard operation
react-native-ai copied to clipboard

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

Open gopinaath opened this issue 1 year ago • 4 comments

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 avatar Jan 05 '24 05:01 gopinaath

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

dabit3 avatar Jan 16 '24 22:01 dabit3

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

gopinaath avatar Jan 19 '24 13:01 gopinaath

@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')

tinsaeyohannes avatar Feb 27 '24 11:02 tinsaeyohannes

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.

edencakir avatar Jul 04 '24 10:07 edencakir