question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

human readable description of AssertionError

See original GitHub issue

It 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:closed
  • Created 8 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
c00kiemon5tercommented, Oct 8, 2018

I am closing this, as it has been fixed. Thanks for looking into this.

0reactions
sheilatroncommented, Oct 8, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found