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

Wrong workspace task returns 400 error #28

Open
VyacheslavLukin opened this issue Nov 1, 2017 · 0 comments
Open

Wrong workspace task returns 400 error #28

VyacheslavLukin opened this issue Nov 1, 2017 · 0 comments
Labels

Comments

@VyacheslavLukin
Copy link
Contributor

When Task ID doesn't belong to configured workspace but exist in another workspace, the following error appears

Putting data to toggl
Traceback (most recent call last):
  File "./toggl_youtrack.py", line 96, in <module>
    get_magic_done()
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "./toggl_youtrack.py", line 72, in get_magic_done
    toggl_data_manager.format_time_entries(toggle_time_entries, youtrack_tasks)
  File "/app/toggl.py", line 128, in format_time_entries
    result.raise_for_status()
  File "/usr/local/lib/python3.5/dist-packages/requests/models.py", line 909, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://www.toggl.com/api/v8/time_entries/717278254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant