-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Getting Invalid Response #72
Comments
So, gathering more information on this issue. If I run a second script on a second machine(I was running it to sniff the packets), the error does not happen on either machine. Within minutes of stopping the second script, the error returns to the original. My gut is telling me the netgear itself is corrupting the XML somehow. I'm going to do more testing but the running theory now is 35 second polling time causes instability. I'm going to try and reduce the polling interval on the single machine and see if this causes the error to go away. |
Concerning instability of the router, see my post: #62 (comment) |
Setting the time interval to 15 seconds resulted in both scripts giving the error. I was able to capture the packets. The netgear itself is sending the corrupted XML
So, I'd say this is not an issue with pynetgear (though since you aren't validating the XML but just checking for the |
Thanks for this. i did the super hacky edit to the file and its working again. after months without it.. |
Reinstalled this again and same error.. Guess ill lay it out here, for anyone new. with the same issue.. file:
line:465 :
line:466:
Working again, HA 0.101.2 @MatMaul is this abandoned? |
Same issue here, you're not alone.. |
Hey @ctrl50, do you know if it’s possible to edit this in hass.io where there is seemingly no root file structure access? Running into similar problems on my D7800 Thank you, Linton |
Thanks all for the detailed analysis, I have incorporated the suggested changes. Sorry for the tremendous delay, but I have been a quite more busy than usual and also don't own anymore any Netgear devices with stock firmware. |
I'm using pynetgear in a hass.io rpi system to monitor presence by probing the device list on my Netgear Nighthawk X10 R9000 (hitting it about every 30 seconds with a query). The system works about 80% of the time and I'm able to get the list of devices without issue but for 10% of the time (and it seems random/sporadic) I get the following error:
Clearly the XML that is printed out in the debug log is invalid:
<ResponseCode>000</ResponseCo</SOAP-ENV:Body>
At first I thought it might be random dropped packets losing the response... but it is consistent in not printing the full tag. Sometimes it breaks at different spots where it only prints
</Respon
but it is always this closing tag that is printed.The question is... is this actually coming from the netgear... or is this some sort of preprocessing of the response that corrupts it within pynetgear?
Either way, I see you don't actually validate the XML any way around this?
The text was updated successfully, but these errors were encountered: