Closed ghost closed 9 years ago
It should, as nothing relevant would have been changed. EDIT: Somehow, I'm not, though. I'll reopen this if I can reproduce it.
On Wed Feb 11 2015 at 2:04:57 PM Alex Goretoy notifications@github.com wrote:
Is this still affecting you after version update?
— Reply to this email directly or view it on GitHub https://github.com/lionheart/python-harvest/issues/4#issuecomment-73942354 .
Ah, yes, here we are again. I was using the delete method, on an existing entry, it did delete, then threw this error. Thanks~
Traceback (most recent call last):
File "/usr/local/bin/sow", line 9, in
File "/usr/local/lib/python2.7/site-packages/harvest/harvest.py", line 148, in delete return self._delete('/daily/delete/{0}'.format(entry_id)) File "/usr/local/lib/python2.7/site-packages/harvest/harvest.py", line 160, in _delete return self._request('DELETE', path, data) File "/usr/local/lib/python2.7/site-packages/harvest/harvest.py", line 174, in _request raise HarvestError(e) harvest.harvest.HarvestError: No JSON object could be decoded
Ah sorry, I had upgraded in a venv. It's now working the way I would expect it to. Thanks for your help!
I get this error:
on a successful delete request. I am not asking for a decodable JSON object, necessarily, but the code is attempting to return one.
My current 'solution' is to throw this in a try: except block and put the confirmation in the except block, but that's obviously suboptimal.
What's going on here, and what can I do to utilize this functionality correctly?