-
Notifications
You must be signed in to change notification settings - Fork 23
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
Not detecting new tasks / unable to detect my next_action label #28
Comments
Same here. Was working for months previously. Updated to latest python todoist API. No help. Ran locally. No help. This is a bug or API change in Todoist. I would like to investigate, but haven't time ATM. |
Losing this automation was a big impediment to my workflow. I have created a similar project with the updated API: |
Hi there! Thanks all for reaching out and looking into this. Sorry I haven’t been able to reply yet, life is bit hectic at the moment. I'll try to find some time this weekend to take a proper look at this too, since it’s a pretty impactful bug indeed. |
Love your project. Has been the reason I’ve stuck with Todoist. Thank you for everything!
From: Hoffelhas ***@***.***>
Sent: Tuesday, December 13, 2022 2:53 PM
To: Hoffelhas/autodoist ***@***.***>
Cc: Shay Hill ***@***.***>; Comment ***@***.***>
Subject: Re: [Hoffelhas/autodoist] Not detecting new tasks / unable to detect my next_action label (Issue #28)
Hi there! Thanks for reaching out and looking into this. Sorry I haven’t been able to reply yet, life is bit hectic at the moment. Il’l try to find some time this weekend to take a proper look at this too, since it’s a pretty impactful bug indeed.
—
Reply to this email directly, view it on GitHub<#28 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADAKIE6TA4PWNISGZL2RZKTWNDO3ZANCNFSM6AAAAAAQ3W5D54>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Well, fun times! Todoist went from v1.x.x to v2 of their API. The old one is still 'working', but apparently only syncs to an older version all your projects/tasks from a few months ago. The API has changed quite significantly, so I'm currently working through the entire code to make it compatible again. |
Oof bad news. The new API's of Todoist doesn't allow creating custom properties for tasks any more. This was a functionality that I used to assign my own meta-data, which Autodoist could use to keep track of stuff and work properly. Even if rewrite all the syntax to the new API, a lot of core functionalities simply don't work any more. I will need to give this some additional thought to see if I can find some kind of workaround or else use an alternative approach to get the same things done. Unfortunately, no quick fix for now. I'll keep you posted. |
Oh sh... but thank you for looking into it and I'll keep fingers crossed!
…________________________________
Von: Hoffelhas ***@***.***>
Gesendet: Sonntag, 18. Dezember 2022 14:00
An: Hoffelhas/autodoist
Cc: Subscribed
Betreff: Re: [Hoffelhas/autodoist] Not detecting new tasks / unable to detect my next_action label (Issue #28)
Oof bad news. The new API's of Todoist don't allow creating custom properties for tasks any more. This was a functionality that I used to assign my own meta-data, which Autodoist could use to keep track of stuff and work properly.
Even if rewrite all the syntax to the new API, a lot of core functionalities simply don't work any more. I will need to give this some additional though to see if I can find some kind of workaround or else use an alternative approach to get the same things done. Unfortunately, no quick fix for now.
I'll keep you posted.
—
Reply to this email directly, view it on GitHub<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FHoffelhas%2Fautodoist%2Fissues%2F28%23issuecomment-1356793301&data=05%7C01%7C%7C87dfc669040e40e4fdd508dae0f7d70a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638069652306619641%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ErSjJ9nYcDzXAgO8wygPzyZT1f1oUP7cIBlD6Kq%2BBTM%3D&reserved=0>, or unsubscribe<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAJ4FOGRBLE3ABGHS7IK2YTWN4DGXANCNFSM6AAAAAAQ3W5D54&data=05%7C01%7C%7C87dfc669040e40e4fdd508dae0f7d70a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638069652306776296%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=H1TiSKLo89aHS8yUO4wl9gzin5yOH%2FAQBEG8RCe7gN4%3D&reserved=0>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Hi all, I was able to find a workaround and have just pushed a working version to the dev branch. Currently only labelling is working, I've disabled most of the other features for now so I could focus on the problem at hand. Before releasing a new master version, there are a few minor things I still want to do:
In any case, v2.0 planned to be released relatively soon. |
@Hoffelhas I have holidays and some time left this week. LMK if you want to pair up or divide some work. Let's get this thing working again. |
@RoccoMathijn Hi there, thanks a lot for your help! First bullet point is now done, it's mostly fixing the other functionalities. I actually do have one I'm stuck with currently and will likely only be able to continue with this weekend. I've put a new branch up, '26_due_date', where I'm trying to get the 'Postpone the end-of-day' functionality working again. The final thing that needs to happen is that the updated due date needs to be send back to Todoist, which currently is done on line 769 with the REST API. However, this will remove the 'due string' / recurring settings from the task, or basically, updating the due date with the REST API breaks the task. Brilliant. The alternative would be to use the sync API. An example can be seen if you manually run the 'get_all_data' function (this uses 'get' that's imported from todoist_api_python.http_requests); it actually spits back data. Now this is good, since the Sync API mentions that you can update the due date too. It also mentions that 'Sync API requests should be made in HTTP POST', so perhaps it's possible to use the imported 'post' function. Unfortunately I have not been able to work it out yet. If you would have some time to poke around this issue a bit, that would be much appreciated! |
The sync api has the same behaviour. But although it's stated in the api docs that: So with |
Oh wow, great find. That certainly makes things a lot easier; I'll implement that. Thanks a lot! |
Good news everyone! I've been able to work through all the important parts. I'll spend some time updating the README, do some final testing, and the goal is to release v2.0.0 this weekend! Only resetting recurring tasks has not been enabled yet, since nowadays it's a core functionality of Todoist itself. However:
Unfortunately the REST API doesn't show completed tasks, which makes resetting them a bit complicated. I've placed a ticket with the Todoist devs to figure this one out, so for now this feature might be made available again in a future release. |
I setup Autodoist in a docker container using the following instructions. It's been working up until now. Before this happened, the container had an uptime of 4 days.
Today, I noticed that any new tasks I input in Todoist weren't receiving my next_action label. I tried to stop the container and edit the command so it'll have a sync time of 45 seconds instead of 5. When I tried to start the container back up, I'm getting errors and it's not acting as if my next_action label isn't there. Here are the following errors.
I'm going to try to run Autodoist directly from my PC to see if I get the same errors
_autodoist_logs.txt
` File "/app/autodoist.py", line 166, in initialise
label_id = verify_label_existance(args, api, args.label, 1)
File "/app/autodoist.py", line 91, in verify_label_existance
response = query_yes_no(
File "/app/autodoist.py", line 65, in query_yes_no
choice = input().lower()
EOFError: EOF when reading a line
Do you want to automatically create this label? [Y/n] �������Q2022-10-03 15:31:05 INFO You are running with the following functionalities:
Next action labelling mode: Enabled
Regenerate sub-tasks mode: Enabled
Shifted end-of-day mode: Disabled
2022-10-03 15:31:05 INFO
Label 'next_action' doesn't exist in your Todoist
Traceback (most recent call last):
File "/app/autodoist.py", line 1005, in
main()
File "/app/autodoist.py", line 959, in main
api, label_id, regen_labels_id = initialise(args)
File "/app/autodoist.py", line 166, in initialise
label_id = verify_label_existance(args, api, args.label, 1)
File "/app/autodoist.py", line 91, in verify_label_existance
response = query_yes_no(
File "/app/autodoist.py", line 65, in query_yes_no
choice = input().lower()
EOFError: EOF when reading a line
Do you want to automatically create this label? [Y/n] �������Q2022-10-03 15:31:07 INFO You are running with the following functionalities:
Next action labelling mode: Enabled
Regenerate sub-tasks mode: Enabled
Shifted end-of-day mode: Disabled
2022-10-03 15:31:07 INFO
Label 'next_action' doesn't exist in your Todoist
Traceback (most recent call last):
File "/app/autodoist.py", line 1005, in
main()
File "/app/autodoist.py", line 959, in main
api, label_id, regen_labels_id = initialise(args)
File "/app/autodoist.py", line 166, in initialise
label_id = verify_label_existance(args, api, args.label, 1)
File "/app/autodoist.py", line 91, in verify_label_existance
response = query_yes_no(
File "/app/autodoist.py", line 65, in query_yes_no
choice = input().lower()
EOFError: EOF when reading a line
Do you want to automatically create this label? [Y/n] �������Q2022-10-03 15:31:10 INFO You are running with the following functionalities:
Next action labelling mode: Enabled
Regenerate sub-tasks mode: Enabled
Shifted end-of-day mode: Disabled
2022-10-03 15:31:10 INFO
Label 'next_action' doesn't exist in your Todoist
Traceback (most recent call last):
File "/app/autodoist.py", line 1005, in
main()
File "/app/autodoist.py", line 959, in main
api, label_id, regen_labels_id = initialise(args)
File "/app/autodoist.py", line 166, in initialise
label_id = verify_label_existance(args, api, args.label, 1)
File "/app/autodoist.py", line 91, in verify_label_existance
response = query_yes_no(
File "/app/autodoist.py", line 65, in query_yes_no
choice = input().lower()
EOFError: EOF when reading a line
Do you want to automatically create this label? [Y/n] �������Q2022-10-03 15:31:15 INFO You are running with the following functionalities:
Next action labelling mode: Enabled
Regenerate sub-tasks mode: Enabled
Shifted end-of-day mode: Disabled
2022-10-03 15:31:15 INFO
Label 'next_action' doesn't exist in your Todoist
Traceback (most recent call last):
File "/app/autodoist.py", line 1005, in
main()
File "/app/autodoist.py", line 959, in main
api, label_id, regen_labels_id = initialise(args)
File "/app/autodoist.py", line 166, in initialise
label_id = verify_label_existance(args, api, args.label, 1)
File "/app/autodoist.py", line 91, in verify_label_existance
response = query_yes_no(
File "/app/autodoist.py", line 65, in query_yes_no
choice = input().lower()
EOFError: EOF when reading a line
Do you want to automatically create this label? [Y/n]
`
The text was updated successfully, but these errors were encountered: