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

Live Query Not Working Properly #1765

Open
4 tasks done
onlinedeveloper4u opened this issue Oct 25, 2023 · 5 comments
Open
4 tasks done

Live Query Not Working Properly #1765

onlinedeveloper4u opened this issue Oct 25, 2023 · 5 comments

Comments

@onlinedeveloper4u
Copy link

onlinedeveloper4u commented Oct 25, 2023

New Issue Checklist

Issue Description

Live query Added.
Subscription for all parse classes needed to listen for live data updates added.
Live query sometimes works and sometime did not.

Steps to reproduce

  1. Add live query to some classes
  2. Test
  3. It will some time work and sometime did not

Actual Outcome

Live query not listening for live query events frequently

Expected Outcome

Expected to listen for all events for all classes

Environment

Client

  • Parse ObjC SDK version: 2.7.3

Server

  • Parse Server version: 4.5.0
  • Operating system: iOS
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Remote

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: n/a
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Remote
@parse-github-assistant
Copy link

parse-github-assistant bot commented Oct 25, 2023

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza
Copy link
Member

mtrezza commented Oct 25, 2023

This is difficult to analyze further based on the information provided. It may well just be a connection issue in your environment. Not sure if we have integration tests in the SDK, but if we do it would be good if you could demonstrate the issue in a test?

@dplewis
Copy link
Member

dplewis commented Oct 26, 2023

@mtrezza The Live Query Starter Project should be improved with integration tests and a simple chat bot. Live Query documentation is missing from the repo as well.

@suathh
Copy link

suathh commented Nov 13, 2023

I can make an addition to that problem. I changed my parse server version from 4.5.0 to 5.2.3 and our live socket connection in iOS become unstable. It effects other requests in SDK too.

Live Query connection lost/reconnection phase is blocking casual SDK requests.

@junya100
Copy link

junya100 commented Jan 5, 2024

We met the same problem with iOS-OSX SDK(version 2.7.3) and parse server version 5.4.2.

And we can see following log message.
ParseLiveQuery: WebSocket viability changed to viable
It seems the socket connection has established, but any update/create event is not received.

And Android SDK(4.2.1) works properly.

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

No branches or pull requests

5 participants