Skip to content
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

Task importer for inactive tasks #11

Open
creadivteam opened this issue Aug 18, 2019 · 0 comments
Open

Task importer for inactive tasks #11

creadivteam opened this issue Aug 18, 2019 · 0 comments

Comments

@creadivteam
Copy link

There was a fatal crash while importing the tasks.
See below:
2019-08-11 21:55:12,251 - INFO - Clue - adding xxx, project: yyyy (394 of 5883)
Traceback (most recent call last):
File "toggl2clockify.py", line 274, in
File "Clue.py", line 387, in syncEntries
File "TogglAPI.py", line 154, in getReports
File "TogglAPI.py", line 190, in _getReports
File "Clue.py", line 363, in onNewReports
File "ClockifyAPI.py", line 664, in addEntry
File "ClockifyAPI.py", line 279, in getTaskIdFromTasks
RuntimeError: Task zzzz not found.
[9896] Failed to execute script toggl2clockify

After reviewing the log and checking the workspaces. There are two issues:

the inactive (past) tasks are not imported - I checked the Toggl API and it should return all tasks (it returns a field called "active" which is a bool)
the script can do some validation before trying to write data to Clockify (or some try / catch statements or just continue even if a 400 status was reported by the api - I am not sure how it works)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant