davidtsadler / ebay-sdk-php

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

Error 1008 from eBay API #37

Closed jaesung2061 closed 8 years ago

jaesung2061 commented 8 years ago

When making a LMS active inventory (download) request, I get this issue:

<? xml version="1.0" encoding="utf-8"?>
<BulkDataExchangeResponses xmlns="urn:ebay:apis:eBLBaseComponents">
    <ActiveInventoryReport>
        <Ack>Failure</Ack>
        <Errors>
            <ShortMessage>Could not get item information right now,Please try again</ShortMessage>
            <LongMessage>ItemIds: [XXXX, XXXX]</LongMessage>
            <ErrorCode>1008</ErrorCode>
            <SeverityCode>LMS.ERROR</SeverityCode>
            <ErrorClassification>ParsingError</ErrorClassification>
        </Errors>
        <Ack>Failure</Ack>
        <Errors>
            <ShortMessage>LMS Internal Error</ShortMessage>
            <LongMessage>LMS Internal Error</LongMessage>
            <ErrorCode>1008</ErrorCode>
            <SeverityCode>LMS.ERROR</SeverityCode>
            <ErrorClassification>InternalError</ErrorClassification>
        </Errors>

    </ActiveInventoryReport>
</BulkDataExchangeResponses>

Is this a sandbox issue? Or an error on my part? The code is from the ebay-sdk-examples repository with nothing changed.

Sometimes it returns successfully but with no items in the inventory report.

davidtsadler commented 8 years ago

May be issue with sandbox as it looks like someone else is having the same problem. I'll keep an eye on the API status page to see if anythings reported before I'll close this issue.

jaesung2061 commented 8 years ago

I'm about to submit a help ticket. What eBay API version is the ebay-sdk-examples using?

davidtsadler commented 8 years ago

The LMS examples don't specify an API version in the request as this value is optional. But it is easy to do.

$exchangeService = $sdk->createBulkDataExchange([
    'apiVersion' => '1.5.0'
]);
$transferService = $sdk->createFileTransfer([
    'apiVersion' => '1.1.0'
]);
jaesung2061 commented 8 years ago

Hey, I've been using a different API call other than the API request and it's been working fine, I don't know if the original issue was fixed but it's no longer needed. You have made an excellent API (the code-level documentation is amazing) though, thank you.

misterakko commented 7 years ago

@jaesung2061 it would be nice to know which alternative API you used

CreateWithCoding commented 7 years ago

@misterakko Agreed which alternative API you used? I'm having same error utilizing the eBay sandbox. btw excellent eBay SDK and MUCH appreciated

CreateWithCoding commented 7 years ago

lol solved by using eBay Production. seems the sandbox isn't always maintained like it should be. 5 years ago had a similar challenge with eBay sandbox with getsellerlist.