Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

_init_ crashing when calling decode #77

Closed
OranShuster opened this issue May 10, 2016 · 1 comment
Closed

_init_ crashing when calling decode #77

OranShuster opened this issue May 10, 2016 · 1 comment

Comments

@OranShuster
Copy link

using the latest code from the repo (will be testing with release 10)

while initialising the Pushbullet class with my api key decode crashes trying to decode the response from the device list
this is the traceback from the console
File "/Users/oranshuster/PyCharmProjects/naipi/naipi/runner.py", line 150, in main
pb = Pushbullet(API_KEY)
File "build/bdist.macosx-10.11-x86_64/egg/pushbullet/pushbullet.py", line 29, in init
File "build/bdist.macosx-10.11-x86_64/egg/pushbullet/pushbullet.py", line 298, in refresh
File "build/bdist.macosx-10.11-x86_64/egg/pushbullet/pushbullet.py", line 42, in _load_devices
File "build/bdist.macosx-10.11-x86_64/egg/pushbullet/pushbullet.py", line 37, in _get_data
File "/Library/Python/2.7/site-packages/requests/models.py", line 819, in json
return json.loads(self.text, **kwargs)
File "/Library/Python/2.7/site-packages/simplejson/init.py", line 516, in loads
return _default_decoder.decode(s)
File "/Library/Python/2.7/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/Library/Python/2.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@OranShuster
Copy link
Author

no spaces. i also checked the response and im getting response 200 (or 201?)

On Tue, May 10, 2016 at 6:22 PM, Roey Darwish Dror <notifications@github.com

wrote:

That's strange. I won't ask you for API_KEY since it's secret, but are you
sure that it's a string containing the proper API key without any redundant
spaces?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#77 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants