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 when parsing a response with an empty <Soap:Body/> #1331

Open
lammas opened this issue Aug 18, 2022 · 1 comment
Open

IndexError when parsing a response with an empty <Soap:Body/> #1331

lammas opened this issue Aug 18, 2022 · 1 comment

Comments

@lammas
Copy link

lammas commented Aug 18, 2022

Hi
I encountered a strange SOAP endpoint that in some cases (e.g. no results) returns an empty body element. When that happens we reach this point and an empty list gets indexed at element 0: https://github.com/mvantellingen/python-zeep/blob/master/src/zeep/wsdl/messages/soap.py#L435-L439

The issue can be reproduced in 4.1.0. Tested with Python 3.9.2.

Attached is a self-contained example to reproduce the issue (had to rename the file because Github doesn't allow .py file extension for some reason).
repro.py.log

@lammas
Copy link
Author

lammas commented Aug 18, 2022

On a second look I noticed that there's already a PR addressing this: #1287
Eagerly awaiting this to be merged. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant