-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Exception Value: Invalid input object: Element #19
Comments
Can you please paste the actual full stack trace, with line numbers, etc.? You seem to have deleted a whole bunch of text from the stack trace. To format it, surround it with triple backtick quotes each on their own line: ``` |
Dear kislyul, Thank you very much for your quick response and your help. Please find below the stack trace with line numbers. Having searched the trace,this is all the information which is related to the signxml library. Anything else is django related, etc. Traceback: Exception Type: TypeError at /model_app/trySaml/ I hope this will help :-) Best regards, |
Please take a closer look at your message. I need the full stack trace down to the specific line where the error occurred, and including line numbers. Take a look at https://guides.github.com/features/mastering-markdown/ for help with how to format your message. You are not formatting it correctly, and as a result, the relevant information including line numbers is not being displayed. |
Dear kislyuk, I updated my previous comment with the line numbers. Thank you, |
For what it's worth, I also experienced this problem when using the stdlib xml.etree.ElementTree instead of the lxml version thereof, which is what I think @nick210 is experiencing. My use case is signing rather than verifying, but here's the code to recreate it:
I think it can probably just be documented to use lxml. |
Interestingly in Python3.4, the same thing occurs but with a different (perhaps misleading) error message:
|
Thank you for tracking this down, @nickcash. Fix released in v0.4.4. Please test. |
Dear all,
I am trying to validate an xml signature (saml token) using signxml.
I am using the following code:
cert=open("/path_to_pem_file").read()
root=ElementTree.fromstring(saml_xml_token)
assertion_data=xmldsig(root)verify(x509_cert=cert)
And the last command xmldsig(root)verify(x509_cert=cert) gives me the following error: Invalid input object: Element
The full stack trace is the following:
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
Exception Type: TypeError at /model_app/trySaml/
Exception Value: Invalid input object: Element
Do you have any idea what could be wrong with the code?
Thank you,
Nick
The text was updated successfully, but these errors were encountered: