intuit-partner-platform – 期望XML时返回的HTML错误消息

我们有一种情况,我们期望从Quickbooks在线返回
XML中的错误消息,但是,我们从API返回以下消息,状态代码为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>

似乎客户端有一个过期的试用帐户.我们的代码应该处理这种类型的错误,还是这个Intuit的问题,因为他们没有返回XML消息?

最佳答案 如果您无错误地提出请求并获得此回复,则可能是您在Quickbooks上的帐户不存在.

我遇到了这个问题.当我经历oauth流程.我得到了正确的oauth key&秘密.但是当我打电话给api时,所以得到同样的错误.我发现我的帐户(我用于make API调用)在Quickbooks中不存在.使用其他现有帐户,它工作正常.

希望这有帮助.

点赞