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

Error connecting to Todoist API #17

Open
samspo opened this issue Aug 30, 2016 · 6 comments
Open

Error connecting to Todoist API #17

samspo opened this issue Aug 30, 2016 · 6 comments

Comments

@samspo
Copy link

samspo commented Aug 30, 2016

Hello,

Config:
OSX 10.11
premium todoist account
I used the API token in the todoist settings

When I try to execute ./cliist.py, I have the following message:

Traceback (most recent call last):
  File "/Users/sam/Dropbox/Workflow/Tech/cliist/lib/api.py", line 21, in api_call
    req = urllib.request.urlopen(url)
  File "/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 410: Gone

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sam/Dropbox/Workflow/Tech/cliist/cliist.py", line 5, in <module>
    from lib import process, output, cache
  File "/Users/sam/Dropbox/Workflow/Tech/cliist/lib/process.py", line 3, in <module>
    from lib import todoist, output
  File "/Users/sam/Dropbox/Workflow/Tech/cliist/lib/todoist.py", line 4, in <module>
    from . import models, output
  File "/Users/sam/Dropbox/Workflow/Tech/cliist/lib/models.py", line 188, in <module>
    projects_dict = ProjectDict()
  File "/Users/sam/Dropbox/Workflow/Tech/cliist/lib/models.py", line 185, in __init__
    for project in api.api_call('getProjects'):
  File "/Users/sam/Dropbox/Workflow/Tech/cliist/lib/api.py", line 25, in api_call
    raise CliistException('Error connecting to Todoist API')
lib.utils.CliistException: Error connecting to Todoist API

What should I do? Where is my mistake?

Thanks,

@ddksr
Copy link
Owner

ddksr commented Sep 4, 2016

Hi, looks like the totoist api was replaced.

will work into updating the code to support the new one

tnx for the detailed report!

@samspo
Copy link
Author

samspo commented Sep 5, 2016

Thx for the follow up.

@ygorduraes-old
Copy link

Same problem here, waiting for the update (:

@lawrenceadams
Copy link

Looking forward to it! Thanks

@kaushalmodi
Copy link

Stumbled across the same issue.

@chadfrost
Copy link

Ditto. The Todoist API is now at v7, from looking at the codebase it's a pretty substantial shift. There is an official todoist api python library (https://developer.todoist.com/?python#client-libraries) that is probably the best starting point to update the cli interface.

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

6 participants