HTML error message returned while waiting for XML

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?

+4
source share
1 answer

If you make a request without errors and get this answer, your Quickbooks account probably does not exist.

I ran into this problem. When I go through the oauth stream. I get the correct key and secret. But when I make an api call, we get the same error. I found that my account (which I use to call the API) does not exist in Quickbooks. With another existing account, it works great.

I hope for this help.

+2
source

Source: https://habr.com/ru/post/1482649/


All Articles