eBay XML API returns 'Invalid job context type' error

女生的网名这么多〃 提交于 2019-12-10 21:05:19

问题


I am developing eBay manager that is almost completed. Everything is running fine, like posting of data, getting order details from eBay.

Now I need to update the status of Shipping Tracking numbers, Carrier on eBay. Here I am getting error and I can't figured out what is the problem. Any help in this regards will be highly appreciated.

Help Reference: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/CompleteSale.html

Error response:

<?xml version="1.0" encoding="UTF-8"?> <GetSellerTransactionsResponse xmlns="urn:ebay:apis:eBLBaseComponents"><Timestamp>2010-01-13T12:50:29.644Z<Ack>Failure<Errors><ShortMessage>Invalid job context type<LongMessage>The job context object is not supported by Action Service Framework.<ErrorCode>21843<SeverityCode>Error<ErrorParameters ParamID="0"><Value>GetSellerTransactions<ErrorParameters ParamID="1"><Value>CompleteSaleRequestTypeRequestError<Version>643<Build>E643_CORE_BUNDLED_10284414_R1</GetSellerTransactionsResponse>


回答1:


I got this error when accidentally having the wrong X-EBAY-API-CALL-NAME value for the call I was making.

For example, in my header I put GetSellerEvents, but my request body was using GetSellerList.

Hope that helps!

  • Joe



回答2:


Just had a similar issue. I had non-matching values in the headers and the XML; I had AddItem in the header, but VerifyAddItemRequest in the XML. (A copy and paste issue). The XML part needs to be AddItemRequest in this case.

After fixing this, I made my first-ever successful item listing in the sandbox.



来源:https://stackoverflow.com/questions/2056193/ebay-xml-api-returns-invalid-job-context-type-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!