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
How to handle errors like "Connection broken: IncompleteRead" #725
Comments
Have you checked whether the website gives invalid |
I was unable to manually test this as it only happens sometimes. I didn't yet put the effort in to make a cronjob for curl and save the output to be able to retrace the calls. I'm not too comfortable with python so making PR's is not my forte I'm afraid :) |
A minimal reproducer that serves incomplete HTTP chunks: I have regularly observed the same problem in the wild here: https://www.mozilla.org/en-US/security/advisories/
|
Sometimes web servers return incomplete responses, triggering an `InvalidChunkLength` exception in urlwatch. Enable this job option to ignore these errors. thp#725
Adding this option was straightforward. Steps to reproduce: Before:
After:
→ exit code 0 |
An improved reproducer now also emulates regular incomplete reads (wrong Content-Length),
The new option silences both errors. |
Sometimes web servers return incomplete responses, triggering an `InvalidChunkLength` exception in urlwatch. Enable this job option to ignore these errors. thp#725
* Add job option `ignore_incomplete_reads`. Sometimes web servers return incomplete responses, triggering an `InvalidChunkLength` exception in urlwatch. Enable this job option to ignore these errors. #725
I'm tracking a website that sometimes gives me an errormessage like:
The configuration I'm using includes the following statements that seem to have no effect on this particular error:
I've also tried "treating" it as a timeout, by setting a stricter timeout and ignoring timeout errors like so:
But it doesn't really help anything. What else can I try? This is urlwatch v2.25 on Linux
The text was updated successfully, but these errors were encountered: