OmnifocusScripts icon indicating copy to clipboard operation
OmnifocusScripts copied to clipboard

Error retrieving project list from toggl

Open ribret opened this issue 7 years ago • 8 comments

I get "Script failed: Error retrieving project list from Toggl. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4 100 4 0 0 6 0 --:--:-- --:--:-- --:--:-- 6 jq: error (at :0): Cannot iterate over null (null)" every time I try to start the toggl script in OmniFocus. Anybody knows why?

ribret avatar Aug 28 '17 12:08 ribret

I had this issue as well. It resolved when I created a project in Toggl. Once you have at least one, the script seems to work beautifully. Note you have to select a project before the script can continue.

nedzb avatar Sep 21 '17 02:09 nedzb

I have a lot of projects in toggl, but does not work. How do I select the project?

ribret avatar Sep 21 '17 09:09 ribret

Hi - first of thanks @samuelkordik for your scripts! Looks great and a big help once I get it to work.

Just seconding @ribret 's error message. Using an incorrect API key brings up the dialogue boxes (though no projects to choose, naturally). Using the correct API throws the Error retrieving lists window for me.

Thanks for any & all advice!

verwinv avatar Oct 03 '17 09:10 verwinv

Update! Project list suddenly showed today, after many earlier tries. Can't point to what changed. @ribret is your problem with calling the project list still unsolved?

verwinv avatar Oct 25 '17 21:10 verwinv

Unfortunately, yes @verwinv :-( `Error retrieving project list from Toggl. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 4 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4 100 4 0 0 10 0 --:--:-- --:--:-- --:--:-- 10 jq: error (at :0): Cannot iterate over null (null)`

ribret avatar Oct 26 '17 13:10 ribret

In my case, that particular error hasn't shown at all since my last update. I do get the project selection pup-up, but more often than not receive an error of this type trying to activate it. @samuelkordik have you experienced this as well?

Script failed: Error retrieving project list from Toggl. Error choosing from list: Can’t make item 144 of {"79529280", "79231558", "79014883", "79014742", "79014560", "78819894", "78643588", "78639312", "77841315", "77841165", "77690481", "77606171", "27605411", "46244679", "77503075", "77502913", "77496937", "77082986", "75377665", "75255686", "74176435", "74160112", "74151271", "73698883", "73684074", "73679108", "73656032", "73653738", "73644864", "73633908", "72740788", "72666409", "72395100", "72162683", "68709260", "51372326", "47361156", "47357191", "3780665", "3850559", "3739271", "3745510", "4183677", "3744983", "6247758", "4813078", "4813079", "4813080", "4813081", "4813083", "4813091", "4813088", "4813090", "4813093", "4813094", "4813096", "4813097", "4813098", "4813099", "4813100", "4813101", "4813102", "4813103", "4813104", "4813106", "4813086", "4813084", "4813089", "4813082", "4813092", "2514567", "13253804", "28474960", "2468586", "4373079", "4422680", "13265064", "4813095", "3738987", "3738979", "3738983", "3738973", "3739178", "3750071", "3750076", "3750219", "3761470", "3779617", "2468520", "2465813", "3790080", "3790570", "2470003", "2465321", "2586730", "3751426", "4813087", "4348286", "4348375", "11366186", "11153713", "11155750", "11155639", "11158751", "11159554", "3850615", "11174814", "11212190", "11696174", "13324436", "13518258", "4813085", "13824961", "13824976", "13825005", "12758102", "13825015", "2476022", "15917559", "11160577", "16167342", "18639955", "18639949", "18639951", "18639953", "18639950", "18639952", "18639954", "4813105", "11155749", "27186576", "27605417", "13869294", "33106559", "33106547", "27186550", "2464270", "32484686", "36146595", "79985682", "77521077", "77519217", "75228597"} into type string.

verwinv avatar Nov 05 '17 22:11 verwinv

I had this issue when I had a workspace in Toggl without a project in that workspace. Creating a project in the empty workspace resolved the issue.

chase-dwelle avatar Dec 20 '17 17:12 chase-dwelle

Thanks @chase-dwelle! I tried your suggestion but to no avail.

verwinv avatar Dec 20 '17 17:12 verwinv