-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Unable to perform initial sync due to reminders.is_deleted of wrong type #234
Comments
Hmm, I'm not able to reproduce this, but that doesn't mean it isn't happening. I don't use reminders, but I do see that the API documentation says it'll send back a I created a reminder on a task -> synced -> deleted said reminder -> and finally synced. No errors, but I may even be using reminders wrong, haha! Is this still happening, @opennomad? If so, I'll go ahead and modify things a bit to see if that solves things for you. Edit: I do know that @kenliu was reworking the library to better match the Todoist API as lots of things have changed. Maybe they can chime in here where they're at with that. |
I was looking into #231 which turned out to be a bug in the Todoist API where the incorrect type was being returned (integer instead of string). I'd have to look more closely at this to determine if the same thing is happening here. |
I strongly suspect that whatever was the problem on the server side for Todoist also caused this issue and is now resolved on their end. @opennomad can you try again and see if the problem is still happening? |
So this is interesting...looking at the json returned from the sync API call, the API returns:
screenshot of a part of the json response: However, the API documentation clearly states that So this is kind of a funky situation. The |
I'd say in this case we either need to write a custom unmarshaler for this field, or we just stop marshalling out that field until the API is fixed. That item is not used anywhere in the codebase. Just a thought. |
I just tried again, and it still complains about the |
That is weird, thanks for the update @opennomad. I like your idea @HacDan -- if we aren't using this field right now then let's remove it to prevent syncing issues until we can figure out what's going on with the API. I can open up a support ticket with Todoist to find out what the API should be returning. |
… api is being funky Commented out IsDeleted field in the Reminder struct as the API is currently being inconsistent. Work around for issue sachaos#234.
I put a ticket in with the Todoist Support Team yesterday. I haven't heard anything, though. Regarding commenting out, I don't think it should have any negative effect on the app. A quick ripgrep through the code base returned no hits outside of the @opennomad Can you test this build? I understand if you don't want to. I've also uploaded the minor change to GitHub if you'd like to check the code first and/or build it yourself. Nothing funky, just trying to be transparent. I only uploaded an elf 64 bit build. I can upload other builds if need be. Unfortunately, because I'm not experiencing the issue, I don't know if this will resolve the issue. I only commented out the |
The initial sync succeeeds:
but then I get a sigsev when I try to list. That happens with both the custom built and the version I had installed already.
|
Hmm... I'm wondering if this is the other issue that has been cropping up with the That's where things are going awry anyway. @opennomad Do you happen to have any |
@HacDan , I might be even more "evil" than a 🌄 Good Morning I just removed them as a test, and I'm still getting the SIGSEGV. I then searched for |
I get the same / a similar error when I try to add something to todoist:
|
@opennomad Have you tried blowing away your sync cache, resyncing, and the listing, to see if it makes a difference? Sync cache is located in I tried setting up with your labels, but no change here. I'm not entirely convinced it's a special character causing the issue. @FlohGro-dev I can put a build together for you if you'd like, for testing, to see if that resolves things for you. I'm hesitant to push the PR as I haven't tested it extensively. I would just need to know your os and architecture. I have an elf 64 bit binary linked above if that's what you're running. |
I seem to have the same issue. Tried deleting the sync cache and the API token, but still get the "cannot unmarshal...." error. Hope that me confirming this is of some use. I have several labels with e.g. emojis. |
I tried blowing the cache away and syncing again. using the default version that comes with arch, it get the |
So I finally heard back from Todoist. They have deprecated the v8 sync API and in the v9 sync api, this now returns a boolean instead of an int. Because of this, the backend library will need to be reworked a bit to accommodate the new API. I'll begin work on this, but if someone beats me to it, feel free! |
I just noticed that the AUR version if have installed ( |
Using
todoist-git
in AUR.I get the following error:
Almost smells like an API issue on the Todoist side returning a number instead of a bool?
The text was updated successfully, but these errors were encountered: