human readable description of AssertionError
See original GitHub issueIt would be helpful if the AssertionError contains a human readable error message so that it can be presented to the client.
Traceback (most recent call last):
response = self.sp.parse_authn_request_response(message, binding, self.outstanding_queries, self.outstanding_certs)
File "/usr/lib/python2.7/dist-packages/saml2/client_base.py", line 573, in parse_authn_request_response
binding, **kwargs)
File "/usr/lib/python2.7/dist-packages/saml2/entity.py", line 949, in _parse_response
response = response.verify(key_file)
File "/usr/lib/python2.7/dist-packages/saml2/response.py", line 853, in verify
res = self._verify()
File "/usr/lib/python2.7/dist-packages/saml2/response.py", line 391, in _verify
assert self.issue_instant_ok()
AssertionError
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
AssertionError (Java Platform SE 7 ) - Oracle Help Center
Constructs a new AssertionError with the specified detail message and cause. Method Summary. Methods inherited from class java.lang.Throwable · addSuppressed, ...
Read more >What is an AssertionError? In which case should I throw it from ...
AssertionError is an Unchecked Exception which rises explicitly by programmer or by API Developer to indicate that assert statement fails.
Read more >Python | Assertion Error - GeeksforGeeks
Assertion Error Assertion is a programming concept used while writing a code where the user declares a condition to be true using assert...
Read more >What is Assertion Error in PYTHON? - Quora
An AssertionError is an error generated by the program to indicate that something that should never happen, has happened. It is commonly used...
Read more >AssertionError - Android Developers
Constructs a new AssertionError with the specified detail message and cause. ... Creates a localized description of this throwable. String · getMessage().
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am closing this, as it has been fixed. Thanks for looking into this.
I bumped into this confusing error while testing an older version, and the broad exception raising seems to have been corrected in newer versions. Here is the fix commit from @rohe
https://github.com/IdentityPython/pysaml2/commit/5518bd69f572600eea035c5b9958354ea11b58e0#diff-b22d07287a1f7d4a4ae80402fa1bd832