question

baytest avatar image
0 Likes"
baytest asked ·

Sandbox: UploadSiteHostedPictures returning Error 10007

I can't upload pictures to the sandbox Trading API with UploadSiteHostedPictures. This is what I sent: POST /ws/api.dll HTTP/1.1 Content-Type: multipart/form-data; boundary=---IAmSeparatingFormData X-EBAY-API-COMPATIBILITY-LEVEL: 1039 X-EBAY-API-SITEID: 77 X-EBAY-API-CALL-NAME: UploadSiteHostedPictures X-EBAY-API-DEV-NAME: xxx X-EBAY-API-APP-NAME: xxx X-EBAY-API-CERT-NAME: xxx Host: api.sandbox.ebay.com Content-Length: 3456075 Expect: 100-continue -----IAmSeparatingFormData Content-Disposition: form-data; name="document" xxx -----IAmSeparatingFormData Content-Type: application/octet-stream Content-Disposition: attachment; name="image"; filename="image.jpg" Content-transfer-encoding: base64 ***base64 string comes here*** -----IAmSeparatingFormData-- Connection: Keep-Alive This is what I receive: HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=UTF-8 Cache-Control: private Pragma: no-cache RlogId: t6n%60bnbvpdp%28ciudbq%60anng%7Fu2h%3F%3Cwk%7Dkbglgtufu*1134035%29pqtfwpu%29pdhcaj%7E%29fgg%7E%606%28dlh-1610e396405-0xa348 Server: ebay server . . . 290 2018-01-19T04:41:44.117-07:00 Failure Interner Anwendungsfehler. Interner Anwendungsfehler. 10007 Error RequestError 3 mediasvcs-4.3.0_20180112182821719 2 0
sandboxtrading apitrading-apitradingapiuploadsitehostedpictures
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

amr.-36 avatar image
0 Likes"
amr.-36 answered ·
i have the same problem, in sandbox upload in the first trying success but after that all the time failed!! dont have any idea how to upload photos!!!
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

gv74 avatar image
0 Likes"
gv74 answered ·
Hi, since last week I get the same error but on Production UploadSiteHostedPictures Returning Error 10007. Two weeks before it worked well. Does anyone have an idea what goes wrong?
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

baytest avatar image
0 Likes"
baytest answered ·
I finally have it working now. For anyone trying to upload local images with C# (without the eBay SDK): Upload your whole workload (including the xml part) using bytes[] with a Stream. I tried to do it as a string with a StreamWriter and encoded the image bytes with base64, which is not possible, as it seems.
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

baytest avatar image
0 Likes"
baytest answered ·
@shulmani_developer.support: Could you or anybody else from your team please have a look at this? I am simply not getting it done! Btw if I try it in production environment it gives me error code 2191454: "Uploaded picture has an unsupported file format."
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.