You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The QuickBooksOnline\API\Core\Http\Serialization\XmlObjectSerializer::Deserialize() method returns NULL if Fault is equal to the XML objects name (line 245). This then prevents any future access to the error message.
$oneXmlElementName = (string)$oneXmlObj->getName(); if ('Fault'==$oneXmlElementName) { return null; }
Contents of $oneXmlObj: object(SimpleXMLElement)#2962 (2) { ["@attributes"]=> array(1) { ["type"]=> string(15) "ValidationFault" } ["Error"]=> object(SimpleXMLElement)#3118 (3) { ["@attributes"]=> array(2) { ["code"]=> string(4) "6190" ["element"]=> string(0) "" } ["Message"]=> string(22) "Invalid Company Status" ["Detail"]=> string(322) "Subscription period has ended or canceled or there was a billing problem : You can't add data to QuickBooks Online Essentials because your trial or subscription period ended, you canceled your subscription, or there was a billing problem. To update your subscription, click the gear icon and view your account information." } }
Expected results: The error message should be accessible to library consumers
Actual results: The error message is not accessible
The text was updated successfully, but these errors were encountered:
The QuickBooksOnline\API\Core\Http\Serialization\XmlObjectSerializer::Deserialize() method returns NULL if
Fault
is equal to the XML objectsname
(line 245). This then prevents any future access to the error message.$oneXmlElementName = (string)$oneXmlObj->getName(); if ('Fault'==$oneXmlElementName) { return null; }
Contents of $oneXmlObj:
object(SimpleXMLElement)#2962 (2) { ["@attributes"]=> array(1) { ["type"]=> string(15) "ValidationFault" } ["Error"]=> object(SimpleXMLElement)#3118 (3) { ["@attributes"]=> array(2) { ["code"]=> string(4) "6190" ["element"]=> string(0) "" } ["Message"]=> string(22) "Invalid Company Status" ["Detail"]=> string(322) "Subscription period has ended or canceled or there was a billing problem : You can't add data to QuickBooks Online Essentials because your trial or subscription period ended, you canceled your subscription, or there was a billing problem. To update your subscription, click the gear icon and view your account information." } }
Expected results: The error message should be accessible to library consumers
Actual results: The error message is not accessible
The text was updated successfully, but these errors were encountered: