We have a situation where we expect the XML error message to be returned from Quickbooks online, however we receive the following message from the API with status code 400.
<html> <head> <title>JBoss Web/2.1.12.GA-patch-03 - Error report</title> <style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head> <body> <h1>HTTP Status 400 - message=No destination found for given partition key; errorCode=007001; statusCode=400</h1> <HR size="1" noshade="noshade"> <p> <b>type</b> Status report </p> <p> <b>message</b> <u>message=No destination found for given partition key; errorCode=007001; statusCode=400</u> </p> <p> <b>description</b> <u>The request sent by the client was syntactically incorrect (message=No destination found for given partition key; errorCode=007001; statusCode=400).</u> </p> <HR size="1" noshade="noshade"> <h3>JBoss Web/2.1.12.GA-patch-03</h3> </body> </html>
It looks like the client has an expired trial account. Should our code handle this type of error or this Intuit problem because they do not return an XML message?
source share