-
Notifications
You must be signed in to change notification settings - Fork 63
fix issue #37 regarding method location #40
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
Conversation
this fix this error AttributeError: 'NoneType' object has no attribute 'promotePrefixes'
Worked for me! Thanks! |
@@ -729,7 +728,7 @@ def failed(self, binding, error): | |||
|
|||
def location(self): | |||
p = Unskin(self.options) | |||
return p.get('location', self.method.location) | |||
return p.get('location', self.method.location.decode('utf-8')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it better to leave this as .decode()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is the same as utf-8 is the default encoding as stated in python3 docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a benefit to duplicating that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
what exactly should I write in my project's requirements.txt file to be able to install this pull request instead of "suds-py3==1.3.3.0"? |
requirements.txt |
Thank you very much, I had changed it manually and replaced it with what you said, worked! |
Thanks for this. I had the same issue and could fix it as explained here. |
merge this bb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works
this issue happens when the method location/url is different to wsdl location/url.
suds client always takes the wsdl location/url and not the method location so when making a request it uses wrong location getting invalid response hence causing this issue.
by the way suds python2 library doesn't have line 107 therefore it works fine.