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

client 无法连接:JSONDecodeError #16

Open
hongjin95 opened this issue Apr 17, 2019 · 1 comment
Open

client 无法连接:JSONDecodeError #16

hongjin95 opened this issue Apr 17, 2019 · 1 comment

Comments

@hongjin95
Copy link

client = pyapollo.ApolloClient(app_id='py-rds', cluster='default', config_server_url='http://10.64.141.26:11118')
client.start()
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\hjyang\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyapollo-0.0.1.dev1-py3.6.egg\pyapollo\apollo_client.py", line 63, in start
self._long_poll()
File "C:\Users\hjyang\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyapollo-0.0.1.dev1-py3.6.egg\pyapollo\apollo_client.py", line 135, in long_poll
data = r.json()
File "C:\Users\hjyang\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\models.py", line 896, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\hjyang\AppData\Local\Programs\Python\Python36-32\lib\json_init
.py", line 354, in loads
return _default_decoder.decode(s)
File "C:\Users\hjyang\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\hjyang\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@AndrewOYLK
Copy link

How to fix it ?

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

2 participants