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

请求接口时一直报错, #108

Open
8ku opened this issue Dec 4, 2019 · 1 comment
Open

请求接口时一直报错, #108

8ku opened this issue Dec 4, 2019 · 1 comment

Comments

@8ku
Copy link

8ku commented Dec 4, 2019

bot_tokens.json已经把技能和API配置好了,请问这是什么原因呢?

input:
报关单号12312到哪了
Traceback (most recent call last):
File "bot_emulator.py", line 97, in
main(sys.argv[1], sys.argv[2])
File "bot_emulator.py", line 67, in main
obj = requests.post(url, data=json.dumps(payload), headers=json_header).json()
File "/usr/lib/python2.7/site-packages/requests/api.py", line 116, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8010): Max retries exceeded with url: /search?access_token= (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc5318b5190>: Failed to establish a new connection: [Errno 111] Connection refused',))

@HuangLK
Copy link

HuangLK commented Dec 4, 2019

先确认下dmkit服务是否正常运行

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