Comments (8)
Same issue here, you're not alone..
from pynetgear.
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.
from pynetgear.
Concerning instability of the router, see my post: #62 (comment)
from pynetgear.
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
0600 65 76 69 63 65 3e 0d 0a 3c 2f 6d 3a 47 65 74 41 evice>..</m:GetA
0610 74 74 61 63 68 44 65 76 69 63 65 52 65 73 70 6f ttachDeviceRespo
0620 6e 73 65 3e 0d 0a 3c 52 65 73 70 6f 6e 73 65 43 nse>..<ResponseC
0630 6f 64 65 3e 30 30 30 3c 2f 52 65 73 70 6f 6e 3c ode>000</Respon<
0640 2f 53 4f 41 50 2d 45 4e 56 3a 42 6f 64 79 3e 0d /SOAP-ENV:Body>.
0650 0a 3c 2f 53 4f 41 50 2d 45 4e 56 3a 45 6e 76 65 .</SOAP-ENV:Enve
0660 6c 6f 70 65 3e 0d 0a lope>..
So, I'd say this is not an issue with pynetgear (though since you aren't validating the XML but just checking for the <ResponseCode>000</ResponseCode>
string... maybe a super hacky way is to just check for <ResponseCode>000</
and ignore the closing tag??)
from pynetgear.
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
0600 65 76 69 63 65 3e 0d 0a 3c 2f 6d 3a 47 65 74 41 evice>..</m:GetA 0610 74 74 61 63 68 44 65 76 69 63 65 52 65 73 70 6f ttachDeviceRespo 0620 6e 73 65 3e 0d 0a 3c 52 65 73 70 6f 6e 73 65 43 nse>..<ResponseC 0630 6f 64 65 3e 30 30 30 3c 2f 52 65 73 70 6f 6e 3c ode>000</Respon< 0640 2f 53 4f 41 50 2d 45 4e 56 3a 42 6f 64 79 3e 0d /SOAP-ENV:Body>. 0650 0a 3c 2f 53 4f 41 50 2d 45 4e 56 3a 45 6e 76 65 .</SOAP-ENV:Enve 0660 6c 6f 70 65 3e 0d 0a lope>..
So, I'd say this is not an issue with pynetgear (though since you aren't validating the XML but just checking for the
<ResponseCode>000</ResponseCode>
string... maybe a super hacky way is to just check for<ResponseCode>000</
and ignore the closing tag??)
Thanks for this. i did the super hacky edit to the file and its working again. after months without it..
from pynetgear.
Reinstalled this again and same error.. Guess ill lay it out here, for anyone new. with the same issue..
re-hacking the code again:
file:
lib/python3.7/site-packages/pynetgear/__init__.py
line:465 :
("<ResponseCode>0000</ResponseCode>" in resp.text or
change to:
("<ResponseCode>0000</" in resp.text or
line:466:
"<ResponseCode>000</ResponseCode>" in resp.text))
to:
"<ResponseCode>000</" in resp.text))
Working again, HA 0.101.2
@MatMaul is this abandoned?
from pynetgear.
Reinstalled this again and same error.. Guess ill lay it out here, for anyone new. with the same issue..
re-hacking the code again:file:
lib/python3.7/site-packages/pynetgear/__init__.py
line:465 :
("<ResponseCode>0000</ResponseCode>" in resp.text or
change to:
("<ResponseCode>0000</" in resp.text or
line:466:
"<ResponseCode>000</ResponseCode>" in resp.text))
to:
"<ResponseCode>000</" in resp.text))
Working again, HA 0.101.2
@MatMaul is this abandoned?
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
from pynetgear.
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.
from pynetgear.
Related Issues (20)
- No Longer Able To Authenticate After Updating Router HOT 2
- Will it support WG111v3? HOT 2
- Test failures
- Authentication Fails Do To Target Machine Actively Refusing HOT 4
- Sponsor link HOT 3
- Transfer owenership HOT 1
- Error 501 in pynetgear
- Great project! Want any help? HOT 1
- Orbis are very slow to update with accurate list of connected devices HOT 5
- get_attached_devices fails due to & in device name HOT 1
- Sorry to create an issue for this but how about a walk-through of all the features. HOT 2
- Need help to retrieve traffic meter details for WNDR3700v3
- get_attached_devices only one result
- Pynetgear not compatible with new Nighthawk based interfaces vs Genie HOT 2
- Not getting correct data from get_traffic_meter()
- command line throws requests.exceptions.MissingSchema HOT 1
- Error talking to API/Errror communicating with the Netgear router
- Feature request: Add operation to retrieve firewall logs HOT 1
- Login method changed on newest firmware HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pynetgear.