Timer doesn't stop
Hi Samuel,
Thanks so much for making these awesome scripts. I'm having a little bit of trouble. I can start a timer, but I can't stop it. The script appears to run, asks me about the follow up and marks the task complete in OF, but the timer doesn't stop on Toggl. Any ideas?
Thanks again!
Edit: A little test, the complete script is communicating with toggl because it deselects the "of_" task ID tag it creates when a timer is started. It appears to fail at the point it should stop the timer and delete the tag from toggl.
Leanda,
I do have the same problem. I tried to corner it. The debugger identifies the problem at the last curl command, that should stop the timer. This creates an error by the toggl server that says "Lenght required". Haven't been able to solve this.
I have been having the problem too. I added -H 'Content-Length: 0' to the last curl and it worked for me.
@leanda @Flixi1403 @CassieKoelsch Did in your cases the timer also indicate "OmniFocus got an error: Can’t set completed of inbox task to true." or is this a different issue? (to be sure: I get this response for actions not in the inbox)
@verwinv This was another issue I was having, but I've had that issue too. To fix it you have to use "mark complete theTask" instead of "set completed of theTask to true" I've added a pull request with the updated script and you can see it in my fork here. https://github.com/CassieKoelsch/OmnifocusScripts