OmnifocusScripts icon indicating copy to clipboard operation
OmnifocusScripts copied to clipboard

Timer doesn't stop

Open leanda opened this issue 8 years ago • 4 comments

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 avatar Dec 31 '17 16:12 leanda

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.

Flixi1403 avatar Jan 25 '18 10:01 Flixi1403

I have been having the problem too. I added -H 'Content-Length: 0' to the last curl and it worked for me.

CassieKoelsch avatar Mar 27 '18 20:03 CassieKoelsch

@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 avatar Sep 07 '18 08:09 verwinv

@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

CassieKoelsch avatar Sep 07 '18 17:09 CassieKoelsch