question

olin-63 avatar image
0 Likes"
olin-63 asked

LMS_REVISE_FIXED_PRICE_ITEM Error

Hello,

I am trying to upload an xml file with the price and stock update of my items.

When I make the download_result_file call to download the error report I get the following error:

"'message' => 'Internal error',

'longMessage' => 'There was a problem with an eBay internal system or process. Contact eBay developer support for assistance'"


I execute getTask call and it returns the following:

[0] => Array

(

[taskId] => task-2-1342008349

[status] => COMPLETED

[feedType] => LMS_REVISE_FIXED_PRICE_ITEM

[creationDate] => 2022-05-31T08:02:00.000Z

[completionDate] => 2022-05-31T08:02:10.000Z

[uploadSummary] => Array

(

[successCount] => 0

[failureCount] => 1

)

)


The steps I am following are:

- I create a task LMS_REVISE_FIXED_PRICE_ITEM

- I upload an xml file with upload_file

- upload_file returns me:

HTTP/1.1 200 OK

rlogid: t6pitaf%60btuf1%3D9whhpitaf%60btuf1*tghuw%28rbpv6713-1811922d5bd-0x2336

x-ebay-client-tls-version: TLSv1.2

content-length: 0

date: Tue, 31 May 2022 08:02:02 GMT

x-envoy-upstream-service-time: 191

server: ebay-proxy-server

x-ebay-pop-id: UFES2-RNOAZ03-api


But When I make the download_result_file call to download the error report I get the following error:

"'message' => 'Internal error',

'longMessage' => 'There was a problem with an eBay internal system or process. Contact eBay developer support for assistance'"


Do you have an example of XML to update price and stock of products?


The XML that I am trying to upload is the following but it gives me an error:


<?xml version="1.0" encoding="utf-8"?>

<BulkDataExchangeRequests>

<ReviseFixedPriceItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">

<Item>

<ItemID>XXXXXXXXXXX </ItemID>

<Quantity>3</Quantity>

<StartPrice>5.23</StartPrice>

<ProductListingDetails>

<EAN>XXXXXXXXXXX</EAN>

<ISBN>XXXXXXXXXXX </ISBN>

</ProductListingDetails>

</Item>

<ErrorLanguage>es_ES</ErrorLanguage>

<WarningLevel>High</WarningLevel>

</ReviseFixedPriceItemRequest>

</BulkDataExchangeRequests>


Can you tell me where the error is?

api
10 |600

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

1 Answer

·
svlange19 avatar image
0 Likes"
svlange19 answered
    string TaskUrl = "https://api.sandbox.ebay.com/sell/feed/v1/task/" + taskId + "/upload_file";
    RestClient client2 = new RestClient(TaskUrl);
    client.Timeout = -1;
    RestRequest request2 = new RestRequest(Method.POST);
    request2.AddHeader("Content-Type", "multipart/form-data");
    request2.AddHeader("Authorization", "Bearer " + AccessToken);
    request2.AddHeader("Accept", "application/json");
    request2.AddHeader("X-EBAY-C-MARKETPLACE-ID", "EBAY_DE");
    request2.AddParameter("fileName", "Revise.xml");
    request2.AddParameter("name", "file");
    request2.AddFile("file", Application.StartupPath + @"\Revise.xml");
    request2.AddParameter("type", "form-data");
    IRestResponse response2 = client2.Execute(request2);
  


same here:

{"errors":[{"errorId":2003,"domain":"ACCESS","category":"APPLICATION","message":"Internal error","longMessage":"There was a problem with an eBay internal system or process. Contact eBay developer support for assistance","parameters":[{"name":"code","value":"400"},{"name":"message","value":"HTTP 400 Bad Request"}]}]}


any ideas?



10 |600

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.