Closed blakebenton closed 5 months ago
Same here (issue, os, versions) 😅
Looks like TickTick has made another change... Will investigate ASAP.
Please try with 1.0.28
Ok, this at least fetches the tasks. But I'm not convinced everything is back to normal. Will test some more tomorrow.
Still get the error with v1.0.28
Could you paste your console log please?Â
I have the same issue still. Heres my logs
Not sure if this is what's asked. EDIT: resized for thread readability.
Thanks. Working on it now.
Please try again with release 1.0.29.
If you still encounter issues:
What's going on: When fetching tasks from TickTick, one of the parameters is a "checkpoint". What I have learned through experimentation is that "checkpoint" is actually an epoch time from the last fetch. So, theoretically Ticktick is only returning changes since the last checkpoint. When I first wrote the plugin, Ticktick accepted 0 as a valid checkpoint, and returned all tasks. Then it didn't Then -1 returned returned all tasks. Then it didn't. (Full disclosure: running from postman, it still did. But not from the plugin. I haven't quite figured that one out.) So now I'm attempting to set the starting checkpoint as 2013-01-01T00:00:00.000+0000, which is the year that TickTick started. This has worked on my vault. I'm hoping it works for all vaults.
In the fullness of time, I want to update the fetch logic in TickTickSync to take advantage of this "feature" and reduce the network traffic. As in: Determine an arbitrary starting point for fetching (eg: 2013-01-01T00:00:00.000+0000), then keep track of the last fetch date and process task changes accordingly. I'm sure there will be some unwanted side-effects so I want to thoroughly test the theory before releasing it.
Please try again with release 1.0.29.
If you still encounter issues:
1. make sure Debug Mode is turned on 2. right-click in the console log and choose "Save As" 3. Send me the whole log please.
What's going on: When fetching tasks from TickTick, one of the parameters is a "checkpoint". What I have learned through experimentation is that "checkpoint" is actually an epoch time from the last fetch. So, theoretically Ticktick is only returning changes since the last checkpoint. When I first wrote the plugin, Ticktick accepted 0 as a valid checkpoint, and returned all tasks. Then it didn't Then -1 returned returned all tasks. Then it didn't. (Full disclosure: running from postman, it still did. But not from the plugin. I haven't quite figured that one out.) So now I'm attempting to set the starting checkpoint as 2013-01-01T00:00:00.000+0000, which is the year that TickTick started. This has worked on my vault. I'm hoping it works for all vaults.
In the fullness of time, I want to update the fetch logic in TickTickSync to take advantage of this "feature" and reduce the network traffic. As in: Determine an arbitrary starting point for fetching (eg: 2013-01-01T00:00:00.000+0000), then keep track of the last fetch date and process task changes accordingly. I'm sure there will be some unwanted side-effects so I want to thoroughly test the theory before releasing it.
log.log looks like it still aint working
looks like it still aint working
Need more info, please:
Please do NOT do a "Check Database.", it's just adding unnecessary logging at this point.
Thanks
Doesn't work for me neither. TickTickSync 1.0.29, applied the instructions above, can't even login: Login Failed.undefined
. (EDIT: formating for readability)
@viviengarcia : could you please show me the log after you click on Sync?
Edit: when you saw: Login Failed.undefined, the log, there will be a corresponding error log. If you could send me the stack trace associated with that error message (by expanding it) that would be helpful too.
looks like it still aint working
Need more info, please:
1. Close all instances of Obsidian 2. Reopen the one vault with TickTickSyn enabled 3. Login from settings 4. Do a Sync 5. Send logs again please.
Please do NOT do a "Check Database.", it's just adding unnecessary logging at this point.
Thanks
Uh it seems to have all of a sudden started working on my laptop, Weird. Logs seem good now as well
@thesamim I don't have the Sync button, since the login fails
@thesamim I don't have the Sync button, since the login fails
If you turn on debug mode, you will see a sync button in your icons bar. You may have to close obsidian and open it again.
Also if you close settings and open it again.
Q: when's the last time you had a successful login.
Uh it seems to have all of a sudden started working on my laptop, Weird. Logs seem good now as well
Mixed blessings: on the one hand, great it's working!
On the other hand, but we still don't know what the differences between your set up and mine (that resulted in stuff working for me but not for you) were.
As a software engineer: "it suddenly started working again" is just as scary as "it suddenly stopped working." It means the problem is going to come back at some point.
Of course, part of this is that we are the mercy of ticktick and the undocumented API. But that's a different discussion.
@viviengarcia, @blakebenton , @Suyashtnt : I'm leaving this issue open until I'm convinced that we're back to steady state.
I already had debug mode turned on (at least in tickticksync). I tried turning both obsidian and your plugin off and on again but no sync button. Also I just started with ticktick so I never could login from tickticksync (no issue using ticktick app or web though)
25 Apr 2024 16:28:23 thesamim @.***>:
@thesamim[https://github.com/thesamim] I don't have the Sync button, since the login fails
If you turn on debug mode, you will see a sync button in your icons bar. You may have to close obsidian and open it again.
Also if you close settings and open it again.
Q: when's the last time you had a successful login.
— Reply to this email directly, view it on GitHub[https://github.com/thesamim/TickTickSync/issues/125#issuecomment-2077342804], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AAN5YRSZUELXNCGCKIC47Q3Y7EHIPAVCNFSM6AAAAABGU7ODG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXGM2DEOBQGQ]. You are receiving this because you were mentioned. [Tracking image][https://github.com/notifications/beacon/AAN5YRW2GDMSTMYX4R4CPADY7EHIPA5CNFSM6AAAAABGU7ODG2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT32G6FI.gif]
I already had debug mode turned on (at least in tickticksync). I tried turning both obsidian and your plugin off and on again but no sync button. Highlighted is the Sync Button. If you don't see that, we're dealing with a different issue altogether.
Also I just started with ticktick so I never could login from tickticksync (no issue using ticktick app or web though)
Ok, that's a different issue.
Let's work on that first.
When you login to TickTick, on the Web or on the App, are you using an email and password combination or are you using Google/Apple/Facebook? If you are using one of those authenticators, are you able to sign in with email/password only?
If you can send me the console log from your attempt to login, I will try to figure out what's going on.
I'm still seeing the same issue. I never get logged in, when I hit the sync button on the toolbar it does nothing because it never was logged in, no messages in console or anything.
I'm still seeing the same issue. I never get logged in, when I hit the sync button on the toolbar it does nothing because it never was logged in, no messages in console or anything.
Questions:
Thank you for your response.
Highlighted is the Sync Button. If you don't see that, we're dealing with a different issue altogether.
Thanks I missed that.
When you login to TickTick, on the Web or on the App, are you using an email and password combination or are you using Google/Apple/Facebook? If you are using one of those authenticators, are you able to sign in with email/password only?
I'm using email & password combination from the start to login in the app and on the web.
If you can send me the console log from your attempt to login, I will try to figure out what's going on.
There. Edited personal info (user id, user code, email). What I did :
"Login Failed.undefined"
"Please login from the settings"
"Sync completed" (no)
@viviengarcia , @blakebenton : The datapoint I was missing was this was the first time y'all were loging in. This in addition to a change on the TickTick side was the root cause.
Please try again with 1.0.30
Thanks for your patience.
Thanks a lot @thesamim, I tried earlier on my phone and it worked! … Unfortunately I got this message on desktop app (the main device I tried to make TickTickSync work):
I did a bit of research to see if I could follow some instructions to resolve the issue by myself, with no success so far.
EDIT: I went on TickTick Web and tried to remove connected device, thinking perhaps there was a confusion between "too many attempts" and "too many devices", but it didn't work. Also, most of the devices connected were identified as Firefox on Windows 10, which I find very weird. I don't have windows 10, and obsidian is based on chromium AFAIK. So my question is how is this possible?
@viviengarcia : Glad it's at least working on the phone.
that's the error ticktick spits back when you get the email or password wrong. But sometimes it throws that up when it's confused. If you are able to login with that userid and password on the web, but not on the application, chances are I'm still missing something in the code.
Question: Are you sure you are on 1.0.30 on your desktop? I fixed this to give an actual error message in 1.0.30.
Yes, the Login Failed.undefined
was probably from before I updated the plugin. I restarted obsidian to be sure, tried to login and got this:
Here is the log: obsidian.md-1714164905651.log
Yes, the
Login Failed.undefined
was probably from before I updated the plugin. I restarted obsidian to be sure, [...]
Great.
When you log in from the Web right now, are you able to login?
If you are not: you will probably need to either wait 24 hours or ask ticktick for a reset via their support email.
This:
22:50:30.560 plugin:tickticksync:12777 {"baseUrl":"ticktick.com","token":"[0CAB80045A...] len: 368"}
tells me you had at least one successful login at some point from TickTickSync
Question: Are you using the same vault on both your desktop and your phone? If so: are you using the same userid and password on both?
When you log in from the Web right now, are you able to login?
Yes
If you are not: you will probably need to either wait 24 hours or ask ticktick for a reset via their support email.
Noted, I'll stop login on desktop for now and try in 24H
This:
22:50:30.560 plugin:tickticksync:12777 {"baseUrl":"ticktick.com","token":"[0CAB80045A...] len: 368"}
tells me you had at least one successful login at some point from TickTickSync
You mean on desktop?
Question: Are you using the same vault on both your desktop and your phone? If so: are you using the same userid and password on both?
Yes, same vault and same userid/pswd on every device (obsidian, vault, ticktick)
When you log in from the Web right now, are you able to login?>
Yes
That tells me there's an issue with the way the login is being processed from the desktop.
You mean on desktop?
Now that I know you are using the same vault on both dekstop and phone, it may be a result of the successful login on the phone.
How are you synchronizing between desktop and phone?
Out of curiosity: What happens if you just try clicking on "Sync"?
The next troubleshooting steps are:
I tried to login from the desktop this morning. It worked and consequently after activating on my mobile it worked too. For now I'd say this issue is resolved. But now I've found other issues I'll open a bit later. It's mostly tasks duplicates and task (when created from TickTick) that are created on a specific day note, no matter what setting I try. As I said, I'll post a correct issue later.
Anyway thanks for the help and reactivity @thesamim!
Working for me now! Thank you!
@viviengarcia @blakebenton @Suyashtnt : Thank you for your help.
Initial authentication with the plugin to TickTick account fails. Error popup is "Login Failed.undefined"
Steps to reproduce the behavior:
After pulling up the developer console I can see that I actually do get signed in, and get a token. I get a series of "Check point has been changed." messages and then it bails out.
Environment