Skip to content
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

"IndexError: list index out of range" in sdc11073.sdcdevice.subscriptionmgr #147

Open
maximilianpilz opened this issue Apr 20, 2023 · 0 comments · Fixed by #186
Open

"IndexError: list index out of range" in sdc11073.sdcdevice.subscriptionmgr #147

maximilianpilz opened this issue Apr 20, 2023 · 0 comments · Fixed by #186
Assignees
Labels
bug Something isn't working

Comments

@maximilianpilz
Copy link
Collaborator

maximilianpilz commented Apr 20, 2023

The following error occurred while sdc11073 was communicating with itself.

Traceback (most recent call last):
File "/tmp/venv/lib/python3.10/site-packages/sdc11073/sdcdevice/httpserver.py", line 165, in do_POST
response_xml_string = devices_dispatcher.on_post(self.path, self.headers, request)
File "/tmp/venv/lib/python3.10/site-packages/sdc11073/sdcdevice/httpserver.py", line 75, in on_post
return self.get_device_dispatcher(path).on_post(path, headers, request)
File "/tmp/venv/lib/python3.10/site-packages/sdc11073/sdcdevice/httpserver.py", line 106, in on_post
response = self._dispatchSoapRequest(path, headers, soapEnvelope)
File "/tmp/venv/lib/python3.10/site-packages/sdc11073/sdcdevice/httpserver.py", line 116, in _dispatchSoapRequest
return hostedService.dispatchSoapRequest( path, header, soapEnvelope)
File "/tmp/venv/lib/python3.10/site-packages/sdc11073/sdcdevice/sdcservicesimpl.py", line 144, in dispatchSoapRequest
response_envelope = super().dispatchSoapRequest(path, httpHeader, soapEnvelope)
File "/tmp/venv/lib/python3.10/site-packages/sdc11073/sdcdevice/sdcservicesimpl.py", line 72, in dispatchSoapRequest
returnedSoapEnvelope = fn(httpHeader, soapEnvelope)
File "/tmp/venv/lib/python3.10/site-packages/sdc11073/sdcdevice/sdcservicesimpl.py", line 163, in _onSubscribe
returnedSoapEnvelope = self._subscriptionsManager.onSubscribeRequest(httpHeader, soapEnvelope, self.epr)
File "/tmp/venv/lib/python3.10/site-packages/sdc11073/sdcdevice/subscriptionmgr.py", line 319, in onSubscribeRequest
s = _DevSubscription.fromSoapEnvelope(soapEnvelope, self._sslContext, acceptedEncodings,
File "/tmp/venv/lib/python3.10/site-packages/sdc11073/sdcdevice/subscriptionmgr.py", line 261, in fromSoapEnvelope
endToAddress = endToNode.xpath('wsa:Address/text()', namespaces=nsmap)[0]
IndexError: list index out of range

Found in version 1.1.22

@maximilianpilz maximilianpilz added the bug Something isn't working label May 23, 2023
@a-kleinf a-kleinf self-assigned this Jun 26, 2023
@leon1995 leon1995 linked a pull request Jun 26, 2023 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants