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

It's stop work. Toggl API change URL's, the ynop not fix them. #9

Open
4SiB opened this issue Nov 13, 2021 · 1 comment
Open

It's stop work. Toggl API change URL's, the ynop not fix them. #9

4SiB opened this issue Nov 13, 2021 · 1 comment

Comments

@4SiB
Copy link

4SiB commented Nov 13, 2021

python3 run.py since 2021.10.1
Traceback (most recent call last):
  File "/root/togglore/run.py", line 45, in <module>
    actual, expected = client.diff(utils.DateRange.since(args.since))
  File "/root/togglore/togglore/__init__.py", line 17, in diff
    actual_hours = utils.sum_time_of_entries(self.toggle.time_entries(date_range))
  File "/root/togglore/togglore/toggl.py", line 46, in time_entries
    response = self.request(
  File "/root/togglore/togglore/toggl.py", line 33, in request
    response = urllib.request.urlopen(req).read()
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 410: Gone
Command exited with non-zero status 1
@4SiB
Copy link
Author

4SiB commented Nov 14, 2021

FIX

./togglore/toggl.py

- 'https://toggl.com/reports/api/v2/details?workspace_id={}&since={}&until={}&user_agent=togglore&page={}'.format(
+ 'https://api.track.toggl.com/reports/api/v2/details?workspace_id={}&since={}&until={}&user_agent=togglore&page={}'.format(

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