2013-12-10 54 views
3

當我嘗試查詢項目時使用V3我收到SystemFault類型的通用錯誤。當我查詢項目時收到SystemFault

我試圖執行Select * From Item Where Name = 'Something'

確實在API瀏覽器的工作,我相信我準確地重新創建HTTP請求。

HTTP GET是:

GET /v3/company/redacted/query?query=Select%20*%20From%20Item%20Where%20Name%20=%20'Something'%20STARTPOSITION%201%20MAXRESULTS%2020 HTTP/1.1 
Accept application/xml 
Accept-Encoding gzip;q=1.0,deflate;q=0.6,identity;q=0.3 
Authorization OAuth oauth_consumer_key="redacted", oauth_nonce="redacted", oauth_signature="redacted", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1386704546", oauth_token="redacted", oauth_version="1.0" 
Host qb.sbfinance.intuit.com 

和響應我收到:

<IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2013-12-10T11:42:03.147-08:00"> 
    <Fault type="SystemFault"> 
     <Error code="10000"> 
      <Message>An application error has occurred while processing your request</Message> 
      <Detail>System Failure Error: Unexpected Internal Error. (-30000)</Detail> 
     </Error> 
    </Fault> 
</IntuitResponse> 

我失去了一些東西明顯?謝謝。

回答

4

這並不明顯,但從documentation found here看來,您必須對您的查詢中存在的'=進行編碼。

所以不是?

/V3 /公司/絕密/查詢查詢=選擇%20 *%20From%20Item%20Where%20Name%20 =%20'Something'%20STARTPOSITION%201% 20MAXRESULTS%2020

您應該使用

/V3 /公司/絕密/查詢?查詢=選擇%20 *%20From%20Item%20Where%20Name%20%3D%20%27Something% 27%20STARTPOSITION%201%20MAXRESULTS%2020

將'編碼'爲%27,並= =%3D。

相關問題