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

Handle <undefined>undefined</undefined> in server response #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

czerwinskilukasz1
Copy link

Sample server response which was not handled before this fix:

<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value><struct>
<member>
<name>task_id</name>
<value><string>56c66c8afbc8c16bd18641c6</string></value>
</member>
<member>
<name>answer_id</name>
<value><string>0a32d8d0-a2bc-42bd-8599-6764c31ff775</string></value>
</member>
<member>
<name>url</name>
<value><undefined>undefined</undefined></value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>

@gggeek
Copy link
Owner

gggeek commented Feb 28, 2016

Sorry, but I must have missed the version of the spec or the proposed extension where the 'undefined' xml element is mentioned.

I suspect that the presence of 'undefined' might be the result of bad coding in the app using the library (or in the remote xmlrpc server), and that it should be fixed there.

Can you provide me with a pointer?

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

Successfully merging this pull request may close these issues.

2 participants