Skip to content

Error connecting to Todoist API #17

@samspo

Description

@samspo

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions