question

stein-onlinehandel avatar image
0 Likes"
stein-onlinehandel asked

createOrReplaceInventoryItem returning error 500 on sandbox

I'm trying to make a demonstration of my implemented API-functionality, preferably using the sandbox environment, but this requires to have a seller accout with orders. For this I'm trying to insert an order with the createOrReplaceInventoryItem call but I'm only getting this error with a 500 response:

{"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": "reason",
        "value": "Failed to transform underlying error response, see logs."
    }]
}]}


I've registered the sandbox user and was able to get an access token, but this doesn't work. The authorization token is included in the http header. I've been trying the whole day with different variations. Any Ideas?

http.setRequestProperty("Authorization", "Bearer " + token.getAccessToken());
http.setRequestProperty("Content-Language", "en-US");
http.setRequestMethod(method == null ? "GET" : method);
http.setDoOutput(true);
http.setDoInput(true);

if (content != null)
http.setRequestProperty("Content-Type", "application/json; utf-8");

http.connect();
System.out.println(method+ "|"+http.getRequestMethod());

if (content != null) {

try (OutputStream os = http.getOutputStream()) {
byte[] input = content.getBytes("utf-8");
os.write(input, 0, input.length);
os.close();
}


} else {
}
createorreplaceinventoryiteminventory itemcreate inventory item
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.

jamalc12 avatar image
0 Likes"
jamalc12 answered

Hello @stein-onlinehandel,

Please specify following headers in request and retry the call.
Accept:application/json
Content-Type:application/json
Content-Language:en-US
https://developer.ebay.com/my/api_test_tool?index=0&env=sandbox&api=inventory&call=inventory_item-sku__PUT&variation=json


Thanks and regards

firstcallonline




Click to up vote0 LikeClick to down v

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.

panocha_0 avatar image
0 Likes"
panocha_0 answered

There is a problem with data integration in the full sandbox when using the connected app.
When trying to send data to Salesforce from the third-party site in the console of the site, an error occurs Internal Server Error (500).
Surprisingly, using the credentials of production org, all data is saved to the system successfully. The problem occurs only in the sandbox.
I used the Postman app to simulate the connection and also the results were successful.
What could be causing the problem? Is this related to the servers from salesforce?
I would be grateful for any of your help

Thanks

charter panorama

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.