liuwons / liuwons/wxBot

Connection aborted 错误

Open
#239 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.