stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

useAppSettings.ts fails on app load.

Open izakfilmalter opened this issue 3 years ago • 5 comments

Describe the bug

An error occurred while getting app settings: Error: Both secret and user tokens are not set. Either client.connectUser wasn't called or client.disconnect was called

Dev environment info (please complete/provide the following information):

  • Package version:
"expo": "45.0.6",
"react-native": "0.68.2",
"stream-chat": "6.7.3",
"stream-chat-expo": "4.10.0",
  • Device/Emulator:

Pixel 6 - Android 12 iPhone 12 Pro Max - 15.6

To Reproduce Steps to reproduce the behavior:

  1. Clone https://github.com/izakfilmalter/stream-connect-error
  2. yarn install
  3. Add a token to line 10 in App.tsx.
  4. Boot app.
  5. See the console for error

One odd thing is that iOS will start to work when you call connectUser. Android on the other hand just fails to load the channel list when you render it.

Expected behavior Should be able to render Chat component before calling connectUser. The HOC should be able to wrap logged out screens.

Additional context I don't get this error when I use "stream-chat-expo": "3.10.2". Something happened on 4.0.

izakfilmalter avatar Aug 10 '22 14:08 izakfilmalter

Would be great to get some insight on what is happening here.

izakfilmalter avatar Aug 11 '22 23:08 izakfilmalter

@izakfilmalter thanks for reaching out! This has been added to our backlog and will be refined next week

vanGalilea avatar Aug 12 '22 12:08 vanGalilea

Hey team! Please add your planning poker estimate with ZenHub @khushal87 @madsroskar @vishalnarkhede

vanGalilea avatar Aug 16 '22 08:08 vanGalilea

Is there an eta for this fix?

izakfilmalter avatar Aug 24 '22 13:08 izakfilmalter

this still is happening image

"stream-chat-react-native": "^5.3.1"
"expo": "^45.0.0"
"react-native": "0.68.2"
"react": "17.0.2",

any news about it ?

juanjorge avatar Sep 29 '22 18:09 juanjorge

I have changed the prio of this issue to high and start trigaing. @izakfilmalter it seems like the repo you've mentioned above ("Clone https://github.com/izakfilmalter/stream-connect-error "), had been moved/deleted.

vanGalilea avatar Oct 13 '22 15:10 vanGalilea

@vanGalilea My fault, should be public now.

izakfilmalter avatar Oct 13 '22 15:10 izakfilmalter

:tada: This issue has been resolved in version 5.4.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

vishalnarkhede avatar Nov 15 '22 10:11 vishalnarkhede