-
Notifications
You must be signed in to change notification settings - Fork 14
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
Please help with Error: RemoteProtocolError("illegal chunk header: bytearray(b'167 \r\n')") #134
Comments
Could you post the contents of the response_headers log file? |
Sorry, not possible because nothing os written into the response directory. See also error message: Scraper_noname_0 # Error executing get request to url: http://192.168.1.114/. |
Do you have any suggestion to debug more? |
Hmm, I did some more reading about chunked http encoding. I'm not sure but it's maybe some issue with HA and this is using NGINX etc? I have installed HA on top of Debian. If I run a python script on debian console, I can extract temperatur value without any problems...and probably no chunks encoding is used. So command line sensor is working. I will do some packet capture to check the difference.. but not sure if it will help for solution... |
I suspect indeed an issue with the headers being returned by your ESP32. Try the request with curl or postman, and inspect the headers. |
I did some package capturing with tshark and analyzed with wireshark. Thats the call from HA & multiscrape, where I get the illegal chunk error:
... and thats the call from my python script on command line sensor which works fine:
As you see, both have the 167 in between the response. So, I'm not sure, why HA scrape has problems with that.
|
...and one more comment: Here the entire frame code from wireshark ... look at " HTTP chunked response" part
|
...and again ... it seems a problem with httpx !!!! which is used in HA Scrape component.
produces error:
Should I move to solve the issue with python httpx developers or do you have any workaround for this in ha-multiscrape? Thankx |
Multiscrape uses |
Thanks but I think the below is the right discussion in httpx since its not "illegal header line" but "illegal chunk header" |
Good, I'll close issue for now, since it doens't seem to be a multiscrape issue, and replacing httpx is not really an option. |
For the record I also have trouble scraping a web page from my solar inverter (see ECU-3 link above.) Logs: " # Updating failed with exception: illegal header line: bytearray(b'debug9') " Not sure if there are any new fixes to upstream packages that we can pick up here? cheers |
My Home Assistant version: 2022.7.5
Layout-card version (FROM BROWSER CONSOLE): 2.4.2
Newest Version of Multiscape installed
What I am doing:
I try to read my ESP32 HTML sensor.
HTML Code is as following:
my multicraper is like this:
What I expected to happen:
I want to get the temperature value 25.00
What happened instead:
I get following error code but not sure what this means. Ist it a bug or any other problem? Hopefully someone can help me here:
The text was updated successfully, but these errors were encountered: