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

Connection broken IncompletedRead #5051

Open
pyliangbo opened this issue Apr 9, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@pyliangbo
Copy link

commented Apr 9, 2019

I'm crawling some websites. But I met a problem that makes me very depressed.
The error:
('Connection broken: IncompleteRead(2048 bytes read)', IncompleteRead(2048 bytes read))

The code: html=requests.post(url,data=json.dumps(payload),headers=headers,verify=False)

I have never met this problem before. Just one day, it came out.
I'm looking forward to your help.

@Thrimbda

This comment has been minimized.

Copy link
Member

commented Apr 11, 2019

It will be better if you can provide more info about this error.
What websites you are crawling?
Does it appear every time?
the Version of requests & python?

Or straightforwardly, could you provide a script that would recur this error?

@pyliangbo

This comment has been minimized.

Copy link
Author

commented Apr 12, 2019

It will be better if you can provide more info about this error.
What websites you are crawling?
Does it appear every time?
the Version of requests & python?
Or straightforwardly, could you provide a script that would recur this error?

Thanks for your response!
I'm use the multiprocessing module and the proxies to crawler the websites.
Here is the code.
html=requests.post(url,data=json.dumps(payload),headers=headers,verify=False,proxies=proxies)
Here is the snapshot of the error. Unluckily, this error happens frequently, but not always.
微信图片_20190412215135

In the processes, some works well, but some reports this error.

@pyliangbo

This comment has been minimized.

Copy link
Author

commented Apr 13, 2019

The version of python : 3.7.1
The version of requests: 2.21.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.