cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UpLoadSiteHostedPicture XML error

I'm trying to use UpLoadSiteHostedPicture in the eBayPictureService object of the SDK and I'm getting an XML error back - "EPS Exception : An error occurred while parsing EntityName. Line 8, position 40.".  I've turned on logging and I see the following XML being sent

<?xml version="1.0" encoding="utf-8"?>
<UploadSiteHostedPicturesRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials xmlns="urn:ebay:apis:eBLBaseComponents">
    <eBayAuthToken>******</eBayAuthToken>
  </RequesterCredentials>
  <PictureSet xmlns="urn:ebay:apis:eBLBaseComponents">Supersize</PictureSet>
  <ExternalPictureURL xmlns="urn:ebay:apis:eBLBaseComponents">https://url.goes.here</ExternalPictureURL>
</UploadSiteHostedPicturesRequest>

I've removed the URL, but when I click on it, it works properly (with some decoding of special characters).  This works in production just fine, but in sandbox, I've been getting this more and more lately.  Sometimes, I can get it to go through, but most of the time it does not. 

 

Any idea on what I need to be doing differently?

 

Thanks,
Matt

Message 1 of 6
latest reply
5 REPLIES 5

UpLoadSiteHostedPicture XML error

I am seeing this same issue.  It is happening in the SoapAPIDemo SDK example code created by eBay  as well.  I can post an Item without pictures, and I do not get the message.  Only when I add a picture, I get this EPS error you described.  I have not been able to find a resolution to this yet but will post it here when I do.   This problem also exists when trying to upload a photo without creating an item when using the eBay SDK code samples.

Message 2 of 6
latest reply

UpLoadSiteHostedPicture XML error

@jerent_67 

Is your issue also appearing only in the Sandbox?

 

I tried using the API Explorer and uploaded a URL without issue to Production, but don't have a Sandbox account set up. It might be worthwhile to compare the API Explorer to the SDK code or headers.

https://developer.ebay.com/my/api_test_tool?index=0&api=trading&call=UploadSiteHostedPictures&variat...

 

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 3 of 6
latest reply

UpLoadSiteHostedPicture XML error

Yes.  I am only working in sandbox. 

Message 4 of 6
latest reply

UpLoadSiteHostedPicture XML error

I believe the sandbox is just having issues.   Here is the response I got:

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<UploadSiteHostedPicturesResponse
xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2023-09-27T19:55:45.908Z</Timestamp>
<Ack>Failure</Ack>
<Errors>
<ShortMessage>ExternalPictureURL server not available</ShortMessage>
<LongMessage>The server specified by ExternalPictureURL is not responding</LongMessage>
<ErrorCode>21916543</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorParameters ParamID="0"/>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>0</Version>
<Build>mediasvcs-5.0.29_20230914155246166</Build>
<PictureSystemVersion>2</PictureSystemVersion>
</UploadSiteHostedPicturesResponse>

Message 5 of 6
latest reply

UpLoadSiteHostedPicture XML error

I tried the sandbox from the API Explorer and when I used Auth-n-auth, the result was always "Your session has expired. Please reload the page and try again."  But then I tried one more time using the link in the error message to reload the page (rather than reloading manually), and after adding my credentials and URL again, it came back with this in the response header and no response body:

 

 

location:http://pages.sandbox.ebay.com/messages/page_not_responding.html?RlogId=t6n%60bnbvpdp%28ciuoopu0asu%60pkal%3C%3Dosujfaofpset.1hm7t%2Bsfvu7371-18ad86089cb-0xf0
content-type:text/plain
content-length:0

 

 

I think that would be synonymous with the picture uploader not working in the sandbox.

 

When I tried OAuth, the result was the same:

 

rlogid:t6n%60bnbvpdp%28ciuoopu0asu%60pkal%3C%3Dosujfaofpset.1hm7t%2Bsfvu7371-18ad867def3-0xfc
traceid:fc43a4eb81d3d3adf1d528fcb8a9e472
x-ebay-c-version:1.0.0
x-ebay-client-tls-version:TLSv1.3
x-ebay-request-id:18ad867d-ef30-a77e-2a44-69a8fffc3b2b!UploadSiteHostedPictures!lvsmediasvcs-4nj4q-tess0027.stratus.lvs.ebay.com!r1mediasvcs-envjiwv5gtvevlbi[]
set-cookie:ebay=%5Esbf%3D%23%5E;Domain=.ebay.com;Path=/
location:http://pages.sandbox.ebay.com/messages/page_not_responding.html?RlogId=t6n%60bnbvpdp%28ciuoopu0asu%60pkal%3C%3Dosujfaofpset.1hm7t%2Bsfvu7371-18ad867def3-0xfc
content-type:text/plain
content-length:0
date:Wed, 27 Sep 2023 20:50:01 GMT
server:ebay-proxy-server
x-envoy-upstream-service-time:628
x-ebay-pop-id:UFES2-LVSAZ01-apisandbox
connection:close

 

 

On the other hand, Production works just fine.

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 6 of 6
latest reply