davidtsadler / ebay-sdk-php

An eBay SDK for PHP. Use the eBay API in your PHP projects.
Apache License 2.0
349 stars 341 forks source link

Error 11 "Please specify a File with Valid Format" #262

Closed viandanteoscuro closed 4 years ago

viandanteoscuro commented 5 years ago

Hi,

This library is amazing! Great work :D

But sometimes i have the error "Please specify a File with Valid Format" in AddFixedPriceItem request... Moreover, if I try to re-send the same file, it works!

I don't make the xml like the examples, i already have the complete xml. Simply, i load it with file_get_contents, then gzipped as in the examples...

$payloadXml = file_get_contents(DATA_FILE);

...

$payloadData =  gzencode($payloadXml, 9);
$uploadFileRequest = new FileTransfer\Types\UploadFileRequest();
$uploadFileRequest->fileReferenceId = $createUploadJobResponse->fileReferenceId;
$uploadFileRequest->taskReferenceId = $createUploadJobResponse->jobId;
$uploadFileRequest->fileFormat = 'gzip';

$uploadFileRequest->attachment($payloadData);

Do you have any idea how to solve this issue?

Thanks.

Massimo

stevukas commented 5 years ago

Recently its happening for me too, it been good for years, but now i am getting everyday this error. Please specify a File with Valid Format

michabbb commented 5 years ago

in that case, it´s obviously nothing code related and you should contact the ebay support or the official forum and close that issue here to avoid more of these dead issues that have nothing todo with the SDK.