Error making a GetOrdersRequest to the API via an XML request: Receiving GeteBayOfficialTimeResponse
I have been trying to make an XML request to the eBay API for the GetOrdersRequest endpoint. It seems my request is formatted correctly, however, I keep receiving a response of type "GeteBayOfficialTimeResponse" formatted as the following:
<?xml version="1.0" encoding="UTF-8"?>
<GeteBayOfficialTimeResponse xmlns="urn
apis:eBLBaseComponents">
<Timestamp>2023-02-06 01:52:06</Timestamp>
<Ack>Failure</Ack>
<Errors>
<ShortMessage>Unsupported API call.</ShortMessage>
<LongMessage>The API call "GeteBayOfficialTime" is invalid or not supported in this release.</LongMessage>
<ErrorCode>2</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>967</Version>
<Build>19110890</Build>
</GeteBayOfficialTimeResponse>
I am not making a "GeteBayOfficialTimeRequest" so why am I receiving this response? Has anyone else experienced this? How did you get around it?
thecollectionobsession
OP3 years agoYes the request was being sent correctly and as expected. I'm going to try and use OAuth instead. I couldn't get it working.
The header on the request was not getting set to GeteBayOfficialTime as I didn't have that anywhere in my code so there's no possible way I was sending a request of that type.
five_notch_trading_post
·3 years agoNo worries.. Yeah I wasn't suggesting it was necessarily from your personal code. Without more environment / client information it is hard to guess deeper..
But to reiterate the header issue, if you are using a tool or sdk that you didn't write, there could be a bug in it passing the "GeteBayOfficialTime" string to the
header.
For example I can make a modification to the sdk to hard code
"X-EBAY-API-CALL-NAME": "SomeCallABC"
to the header templates, and from then on out my responses will always literally be:
<SomeCallABCResponse xmlns="_urn_removed_">
<Ack>Failure</Ack>
<Errors>
<ShortMessage>Unsupported API call.</ShortMessage>
<LongMessage>The API call "SomeCallABC" is invalid or not supported in this release.</LongMessage>
<ErrorCode>2</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>1295</Version>
<Build>19110890</Build>
</SomeCallABCResponse>
for any call regardless of my xml payload. That is why I made the suggestion to look there first.
thecollectionobsession
OP3 years agoYeah I am not using an SDK. I wrote my own wrapper and library for this so I can easily check what requests are being created and sent.
I wanted to avoid SDKs for this reason so I could keep it up to date and fix things that come up with new API changes. Once I get OAuth setup and tested, I'll update this post to let you know if that gets around the issue.
parrishtirecompany
·1 year agoDid you ever get past this? I'm running into the same thing with a GetItem request.
five_notch_trading_post
·3 years agoDepending on what you are using client-wise to make the call, my guess would be that the request header X-EBAY-API-CALL-NAME: is getting set to GeteBayOfficialTime some how.
do you have access to the request header to verify it is getting set to and sent as: