Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛] 🔥 queryUsers() quite often returns server error #2770

Open
1 of 7 tasks
wojcik92michal opened this issue Nov 8, 2024 · 2 comments
Open
1 of 7 tasks

[🐛] 🔥 queryUsers() quite often returns server error #2770

wojcik92michal opened this issue Nov 8, 2024 · 2 comments

Comments

@wojcik92michal
Copy link

Issue

In our logs service, we see a lot of StreamChat error code -1: QueryUsers failed with error: "", errors that are result of queryUsers().

Log example:
image

Steps to reproduce

Steps to reproduce the behavior:

It is hard to say what are the exact steps. Sometimes it works, sometimes not.

Example of queryParams that failed (ofc SOME_KEY are removed manually from the log by me)

user_id={SOME_ID}={SOME_ID}&api_key={SOME_KEY}&payload={"filter_conditions":{"$or":[{"name":{"$autocomplete":"Brenn"}},{"username":{"$autocomplete":"Brenn"}}]},"sort":[{"field":"last_active","direction":-1}],"presence":false},

Code example:
image

Expected behavior

The API is more stable or the error is more descriptive.

Project Related Information

Customization

Click To Expand

# N/A

Offline support

  • I have enabled offline support.
  • The feature I'm having does not occur when offline support is disabled. (stripe out if not applicable)

Environment

Click To Expand

package.json:

# N/A

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • stream-chat-react-native version you're using that has this issue:
    • 5.30.0
  • Device/Emulator info:
    • happens on multiple devices (both iOS and Android)

Additional context

Screenshots

Click To Expand


@khushal87
Copy link
Member

Hey @wojcik92michal, what is your stream-chat-react-native/stream-chat-expo version?

@wojcik92michal
Copy link
Author

wojcik92michal commented Nov 19, 2024

@khushal87
Previously we were using 5.30.0, now we switched to 5.41.2 (stream-chat-react-native)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants