Open stacksjb opened 5 years ago
Is there a debug module I can enable beyond the Alfred debug? I suspect there is something on the node side going on.
I have identified the root cause of the issue: Todoist has a hardcoded limit of 300 tasks in a project. I hit the limit, so all new task creation was failing. Marking a task complete takes it down to 299, then the next complete, but thereafter fails. (NOTE: This is for Premium/Business subscribers; free I believe have a limit of 150)
Could you return a more useful error message instead of just failing with an error code 400? In addition I still an unsure why notifications are not working - I downloaded an older version to test (4.x) and found that notifications worked successfully on those versions (though obviously task creation failed due to the older API). In addition, I tested running the 'terminal notifier' manually from shell and successfully received an alert notification.
I have worked around this issue in the meantime by adding a "post notification" within Alfred using the "Post notification" option, which at least returns "ALFRED WORKFLOW TODOIST: ✓ Happy days!" or the "Error 400".
Hmmm I'd have to see. I return what I get from todoist API. It's a little bit of an edge case where I would need to create a somewhere around 280 dummy tasks to test this. Any chance you could try what the API returns in your case? It is fairly easy with the rest API and something like postman. Would you be up for that?
The notifications I'm not entirely sure but it's probably easier to create a separate issue to track this, wouldn't you agree?
I tested creation using the documented API with CURL (https://developer.todoist.com/rest/v8/?shell#get-active-tasks) and receive the response "Maximum number of items per user project limit reached" as a response once I hit 300.
curl "https://api.todoist.com/rest/v1/tasks" \ -X POST \ --data '{"content": "Appointment with Maria", "due_string": "tomorrow at 12:00", "due_lang": "en", "priority": 4}' \ -H "Content-Type: application/json" \ -H "X-Request-Id: $(uuidgen)" \ -H "Authorization: Bearer <apikey>" Maximum number of items per user project limit reached
I'll clone for the notifications issue.
Thanks that helps. I'll see what I can do.
Should be fixed in the v6.0.0-alpha.3. It should be stable enough to use as your daily driver, I now have tests for 80% of the code base.
If you want to keep receiving updates set todo:setting pre_releases true
. I still need to update the docs so not all the changes are documented yet.
Martien
Description
I recently found that despite me creating multiple todos, they weren't being created. After deeper troubleshooting, I've found a very weird issue. It appears that I can only create a single task at a time - creating a second one fails with an error code 400. However, if I mark a task as complete, then creation of a second task succeeds.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Tasks should create successfully every time, regardless of how many times task creation is run.
Error logs
STEPS:
Alfred Workflow Todoist
Toggle debugging mode
in de upper right cornerAll information
5. Rerun queryLog:
Additional context
Is there perhaps some local file that is getting locked or could be causing this issue? I find it quite odd.
ADDITIONAL SUGGESTIONS:
1) Please add a notification for task creation/failed successfully to the end of the workflow. I thought I was creating several tasks but they were not created, which is very frustrating, as I use the Todoist via Alfred as my Inbox (in GTD) to dump tasks to be created for organization later.