-
Notifications
You must be signed in to change notification settings - Fork 585
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
Bad changeset (DOWNLOAD) #3197
Comments
@euZebe Can you reproduce it with node.js? |
@kneth It works with both beta-11 and beta-12 on node.js. |
Thanks for trying it out. Does it only happen for one user or do you see it for multiple users? |
@kneth I tried for a few users ; only one fails. |
Things become more problematic ; my tester reproduced it on another realm. No idea what happened ; he just used the iOS app basically. |
@euZebe We're still investigating this issue. Are you, by any chance, using the |
I didn't know that flag. No, I don't use it. |
That's great. Presumably the fixes in the latest betas did the trick. Thanks for reporting. |
I keep getting this error. It goes away for a while when I delete any one of the schema and re-initialise sync. And I add back the schema again, the app works fine. And again after a while this error re-appears. I cannot figure out what could be the issue. I have realm 10.0.0-beta.13. |
Are you by any chance inserting documents in MongoDB directly or via GraphQL? |
Yeah ... we are building web app and mobile app. Mobile app uses Realm Sync to query and insert document. But web app uses GraphQL to insert and query documents in MongoDB. Is it the reason behind this issue ? |
Hm... GraphQL should be fine unless you're hitting an issue with inserting int64 values via GraphQL. Essentially, because int64 isn't representable in json (and thus GraphQL), the server uses a string as the only way to represent int64 losslessly. The problem is that, due to a bug, it inserts the string value in MongoDB rather than convert it to a int64. This then causes issues when synchronizing the document because it no longer conforms to the predefined JSON Schema. We're aware of both issues and are working on fixing them. In the meantime, the only viable workaround I know of is to use If, however, you're not inserting objects, containing |
@nirinchev thanks for the clarification. Looks like we have int64 properties in our database and it might be the reason behind the issue. |
Goals
Open a specific realm successfully.
Actual Results
All realms but one open successfully, data is synchronized as expected.
But when trying to open a realm for a specific user, I get the following error on realm client side :
```{"errorCode": 1, "message": "Bad changeset (DOWNLOAD)"`}``
I tried removing all data from the realm, but I still get the same error.
I tried opening the realm with another device, so that I am sure there is no merge conflict, but still...
Logs
Here are Realm Server logs for the partition:
Steps to reproduce
I use a JWT authentication.
I can hardly consider this problem comes from my application code since every other user can open its realm.
Since the user realm is nearly empty, I could remove it, remove the user from my OAuth service and create it again, but before it, I would like to understand what is the cause of that problem, and be sure it won't happen again. 🤞
Version of Realm and Tooling
The text was updated successfully, but these errors were encountered: