Skip to main content
Published: December 20 2006, 5:30:00 PMUpdated: August 08 2022, 4:16:12 AM

I am getting the following error message:

<?xml version="1.0" encoding= "utf-8"?>
<
GeteBayOfficialTimeResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <
Timestamp>2006-12-21T00:11:26.836Z</Timestamp>
  <
Ack>Failure</Ack>
  <
Errors>
    <
ShortMessage>Invalid value for header "X-EBAY-API-SITEID".</ShortMessage>
    <
LongMessage>Header "X-EBAY-API-SITEID" with value "US" is out of range.</LongMessage>
    <
ErrorCode>10012</ErrorCode>
    <
SeverityCode>Error</SeverityCode>
    <
ErrorParameters ParamID="0">
      <
Value>X-EBAY-API-SITEID</Value>
    </
ErrorParameters>
    <
ErrorParameters ParamID="1">
      <
Value>US</Value>
    </
ErrorParameters>
    <
ErrorClassification>RequestError</ErrorClassification>
  </
Errors>
  <
Version>489</Version>
  <
Build>e489_intl_Bundled_3991260_R1</Build>
</
GeteBayOfficialTimeResponse>

Why am I getting this error message?


Summary

This error message indicates that the value passed in the header is invalid.  From the LongMessage tag, it indicates that US is not a valid value for X-EBAY-API-SITEID.  The SiteID needs to be a numeric value, in this case it needs to be 0 to indicate that the request needs to be routed to US.  The other header which can return a similar error message is a wrong value for the header X-EBAY-API-COMPATIBILITY-LEVEL.  This also needs to be a numeric value and is the version with which you wish to make the call.  
 



Version Info

The code example above was based on the versions specified below:

API Schema Version 491



Additional Resources

How well did this answer your question?
Answers others found helpful

Got thoughts? Click the feedback button – your insights help us improve!