question

the.one.marketplace avatar image
1 Like"
the.one.marketplace asked

Upload pictures .NET SDK - Error: Attachment request file is missing

I am trying to upload images from my local drive to eBay using the .NET SDK, so I can later attach them to the AddFixedPriceItem call. ApiContext context = new ApiContext(); context.ApiCredential.eBayToken = TOKEN_LIVE; context.SoapApiServerUrl = " https://api.ebay.com/wsapi"; context.EPSServerUrl = " https://api.ebay.com/ws/api.dll"; context.Site = SiteCodeType.UK; context.Version = "971"; var pictureService = new eBayPictureService(context); var ebayImagesURLs = pictureService.UpLoadPictureFiles(PhotoDisplayCodeType.SuperSize, localImages.ToArray()); The code above works intermittently and I often get the following exception: **eBay.Service.Core.Sdk.ApiException: Attachment request file is missing. At eBay.Service.EPS.eBayPictureService.UpLoadSiteHostedPicture(UploadSiteHostedPicturesRequestType request, String fileName)** Is anyone else experiencing this behaviour? How are you uploading pictures from your computer to eBay? Thank you!
.NET.net sdkpictureseps upload problemspicture-additempicture service response errorpicture url uploadpictures self hostest removedpictureurl reviseitemeps pictures
· 2
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.

in addition to my answer, looks like the WSDL for the latest version doesn't match the version of the sdk on nuget... the SDK doesn't have PictureFormatCodeType.PNG as an enumeration value. This is the latest WSDL; JPG or GIF or PNG format. JPG format. GIF format. PNG format. (out) Reserved for internal or future use.
0 Likes 0 ·
yes exactly as you described.
0 Likes 0 ·
sree_developersupport avatar image
0 Likes"
sree_developersupport answered
Hello worldealshopper, Can you please provide us the following details 1) Size of the Image. 2) Number of Images that you are uploading? Best Regards
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.

the.one.marketplace avatar image
0 Likes"
the.one.marketplace answered
Hello, 1. All images are less than 100Kb 2. We upload between 2 and 12 images. If the number is close to 12 it is more likely to fail, but if we keep trying it eventually works. Another error message we randomly get is the following: > eBay.Service.Core.Sdk.ApiException: > Picture Services only supports upload > of JPEG, GIF, PNG, BMP, and TIFF image > formats. Try again using a version of > your picture saved in one of those > formats. at > eBay.Service.EPS.eBayPictureService.UpLoadSiteHostedPicture(UploadSiteHostedPicturesRequestType > request, String fileName) Again, after we try several times it ends up working. I hope this information helps you to point me in the right direction. Thank you.
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.

bestqualityproducts711_llc avatar image
0 Likes"
bestqualityproducts711_llc answered
Is there any update on this?
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.

sree_developersupport avatar image
0 Likes"
sree_developersupport answered
Hi @bestqualityproductsllc We are looking into it. Will update you ASAP. Thanks for your patience. Best Regards, eBay Developer Support
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.

sree_developersupport avatar image
0 Likes"
sree_developersupport answered
Hi @bestqualityproductsllc, Can you please verify now? Our Engineering team fixed the error. Please verify and confirm and let me know if you face any issues. Best Regards, eBay Developer Support
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.

the.one.marketplace avatar image
1 Like"
the.one.marketplace answered
Thank you for the update. We are no longer getting the "Attachment request file is missing." error, but the following: > eBay.Service.Core.Sdk.ApiException: Picture Services only supports upload of JPEG, GIF, PNG, BMP, and TIFF image formats. Try again using a version of your picture saved in one of those formats. Try again using a version of your picture saved in one of those formats. at eBay.Service.EPS.eBayPictureService.UpLoadSiteHostedPicture(UploadSiteHostedPicturesRequestType request, String fileName) Again, if we send the request a couple of times it ends up working. Could you please advise? Thank you.
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.

bestqualityproducts711_llc avatar image
0 Likes"
bestqualityproducts711_llc answered
I have the same issue, and both errors seem to happen at random. Like @worldealshopper, the only solution I have found is to just add recursive code that ignores the error and submits the images up to 15 times until it works. 99% this fixes the issue but it is an ugly way of getting it done.
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.

the.one.marketplace avatar image
1 Like"
the.one.marketplace answered
@bestqualityproducts711_llc agree. This is not the right way of doing things and I would appreciate if this bug could be fixed. Thank you.
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.

caterham23 avatar image
0 Likes"
caterham23 answered
I too am getting Picture Services only supports upload of JPEG, GIF, PNG, BMP, and TIFF image formats. Try again using a version of your picture saved in one of those formats. However, it's all the time - any update from ebay devs ??
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.

sree_developersupport avatar image
0 Likes"
sree_developersupport answered
Hi @caterham23, Which version of .NET SDK are you currently using? I would like to provide an updated DLL which might solve the issue. Best Regards, eBay Developer Support
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.