lbryio / lbryio/aioupnp

Invalid continuation byte

Open
#7 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
26
Forks
6
PR merge metrics
No merged PRs in 30d

Description

```
future: exception=UnicodeDecodeError('utf-8', b'\r\n10urn:schemas-upnp-org:device:InternetGatewayDevice:1ARRIS TG2492LG-85 RouterARRIShttp://www.arrisi.com/ARRIS TG2492LG-85 RouterARRIS TG2492LG-85 Router\xf0_\xf0http://www.arrisi.com/AA1P80581207uuid:30353831-3230-3700-0000-48d34396e685urn:schemas-upnp-org:service:Layer3Forwarding:1urn:upnp-org:serviceId:Layer3Forwarding1/ctl/L3F/evt/L3F/L3F.xmlurn:schemas-upnp-org:device:WANDevice:1WANDeviceARRIShttp://www.arrisi.com/WANDeviceWANDevice20180122http://www.arrisi.com/AA1P80581207uuid:30353831-3230-3700-0000-48d34396e685TG2492LG-85urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1urn:upnp-org:serviceId:WANCommonIFC1/ctl/CmnIfCfg/evt/CmnIfCfg/WANCfg.xmlurn:schemas-upnp-org:device:WANConnectionDevice:1WANConnectionDeviceARRIShttp://www.arrisi.com/Residential GatewayTG2492LG-8520180122http://www.arrisi.com/AA1P80581207uuid:30353831-3230-3700-0000-48d34396e685TG2492LG-85urn:schemas-upnp-org:service:WANIPConnection:1urn:upnp-org:serviceId:WANIPConn1/ctl/IPConn/evt/IPConn/WANIPCn.xmlhttp://192.168.0.1/', 477, 478, 'invalid continuation byte')>
Traceback (most recent call last):
File "site-packages\aioupnp\gateway.py", line 177, in _discover_gateway
File "site-packages\aioupnp\gateway.py", line 214, in discover_commands
File "site-packages\aioupnp\protocols\scpd.py", line 114, in scpd_get
File "site-packages\aioupnp\serialization\scpd.py", line 45, in deserialize_scpd_get_response
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at aioupnp/serialization/scpd.py line 45, following the call from protocols/scpd.py line 114 and the gateway.py discovery entries in the traceback. Reproduce discovery with the shown non-UTF-8 device description and determine the expected handling; done means this response no longer causes an uncaught UnicodeDecodeError during gateway discovery.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.