dabit3 / dabit3/react-native-ai

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

Open
#8 4 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.