dabit3 / dabit3/react-native-ai
Type error on server console. (No response on iOS client). Using gpt3.5 turbo)
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 169
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the fresh-install setup with Node 18.17.1, the iOS client, and gpt3.5 turbo, then inspect server/dist/chat/gpt.js at line 73 alongside the reported TypeError. Done means the server no longer throws the undefined-value error and the iOS client stops spinning and receives a response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, react-native, typescript
- Domain
- ai, backend, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100