NextAction icon indicating copy to clipboard operation
NextAction copied to clipboard

HTTP error 403

Open LukaK opened this issue 10 years ago • 2 comments

Features on Youtube demo are great.

When I run the script I get an error. I am running arch linux x86_64. Token is in the script and I have premium version of todoist.

Error: Traceback (most recent call last): File "./nextaction.py", line 335, in main() File "./nextaction.py", line 314, in main response = GetResponse() File "./nextaction.py", line 292, in GetResponse return urllib2.urlopen(req) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(_args) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(_args) File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 403: Forbidden

LukaK avatar Jul 24 '14 14:07 LukaK

I am getting the same error. But it seems to be related to Todoist API. Run curl -X POST -d "api_token=..." https://api.todoist.com/TodoistSync/v2/get and you get a 403 error as well. Perhaps v2 API has been discontinued? Is it possible to update to v5.3 which is the current API?

srodriguez avatar Jul 24 '14 19:07 srodriguez

I'll take a look at this in the next couple days. I didn't know that I was coding against a deprecated API.

akramer avatar Jul 24 '14 19:07 akramer