Connection aborted 错误
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
接上图灵机器人整体运行没问题,就是后台回复一条消息就报一个connection aborted的错误,不太懂是什么原因,求大神指导(PS, Macbook环境下)
'Connection aborted.', BadStatusLine('HTTP/1.1 0 -\r\n',)) Traceback (most recent call last):
File "/Users/allen/Desktop/wxBot/wxbot.py", line 55, in request
allow_redirects, proxies, hooks, stream, verify, cert, json)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/Library/Python/2.7/site-packages/requests/adapters.py", line 473, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', BadStatusLine('HTTP/1.1 0 -\r\n',))
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at wxbot.py line 55 and follow the requests stack through sessions.py and adapters.py under Python 2.7 on macOS. Reproduce the Tuling Robot reply request; done means the connection-aborted response is explained and a verified resolution is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100