-
Notifications
You must be signed in to change notification settings - Fork 124
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
Invalid XML error #3
Comments
It appears to be data related on this one. If the Exp field is empty it will return the error. Exp |
Ok so mostly this will affect any api calls function that returns empty fields? Anything that can be done or it is an Isoft API issue? |
Quite Possible. We will keep digging into this and see what we can do for it. |
Ok thanks, by the way I love this new isoft php sdk, easy to use and more standard to PHP, great work. |
Is this related to this temp fix from @MicFai ? |
I'm getting the same error when I add someone to a campaign through the funnelservice but the call is being made correctly and is successful. So I'm getting a fatal error even though the process is working fine. Fatal error: Uncaught exception 'Infusionsoft\Http\HttpException' with message 'exception 'fXmlRpc\Exception\RuntimeException' with message 'Invalid XML. Expected one of "string", "array", "struct", "int", "biginteger", "i8", "i4", "i2", "i1", "boolean", "double", "float", "bigdecimal", "dateTime.iso8601", "dateTime", "base64", "nil", "dom", "#text", got "value" on depth 9 (context: "")' in /var/www/html/fuel/vendor/lstrojny/fxmlrpc/src/fXmlRpc/Exception/RuntimeException.php:33 Stack trace: #0 /var/www/html/fuel/vendor/lstrojny/fxmlrpc/src/fXmlRpc/Parser/XmlReaderParser.php(81): fXmlRpc\Exception\RuntimeException::unexpectedTag('value', Array, 9, '') #1 /var/www/html/fuel/vendor/lstrojny/fxmlrpc/src/fXmlRpc/Client.php(159): fXmlRpc\Parser\XmlReaderParser->parse('<?xml version="...', false) #2 /var/www/html/fuel/vendor/infusionsoft/php-sdk/src/Infusionsoft/Http/InfusionsoftSerializer.php(28): fXmlRpc\Client->call('FunnelService.a...', Array) #3 /var/www/html/fuel/vendor/infusionsoft/php-sdk/src/Infusionsoft in /var/www/html/fuel/vendor/infusionsoft/php-sdk/src/Infusionsoft/Http/InfusionsoftSerializer.php on line 34 Ideas? |
+1 on this issue. I receive the same XML error on a getSavedSearchResults call when a returned column has an empty value. Here is the fix lstrojny/fxmlrpc#36 |
This seems to be an issue with the conversion to java from a weakly typed language like php... Make sure your values are the exact type the API is expecting. |
We just pushed a fix for this to the develop branch. Please note: due to the fix in the fxmlrpc library, it now requires PHP 5.4 as a minimum requirement to use it. Please see commit f6c582a |
I often get this kind of issue when using the search module with saved search:
search->getSavedSearchResults
Fatal error: Uncaught exception 'Infusionsoft\InfusionsoftException' with message 'Invalid XML. Expected one of "string", "array", "struct", "int", "biginteger", "i8", "i4", "i2", "i1", "boolean", "double", "float", "bigdecimal", "dateTime.iso8601", "dateTime", "base64", "nil", "dom", "#text", got "value" on depth 9 (context: "")' in \infusionsoft-php\src\Infusionsoft\Infusionsoft.php on line 350
So I am not sure if this is caused by Infusionsoft API or the data that is returned. Is there any way to deal with this? Seems to occur only on special fields. E.g.: I have a saved search on Credit Card report and the error occurs when the field Exp is in the fields return array (which is the expiration date string field).
The text was updated successfully, but these errors were encountered: