question

rcichon avatar image
0 Likes"
rcichon asked ·

500 Server Error using Client Token New Inventory Item Add

Worked through several corrections to form JSON on new item / inventory add to Sandbox. With OAuth AppId I was getting errors back on format issues with JSON. After clearing these errors I was given an authorization error to create with the app token. Then realized I needed a client token to add a new product. Generated ID and then was presented with a 500 server error. Here is the detail: (First set is an expired token, second is a 5 minute old token) With old/expired OAuth User Token Payload: "{\"availability\":{\"shipLocationAvailability\":{\"quantity\":\"15000\"}},\"condition\":\"NEW\",\"packageWeightAndSize\":{\"dimensions\":{\"height\":\"12\",\"length\":\"7.5\",\"width\":\"8\",\"unit\":\"INCH\"},\"weight\":{\"weight\":\"15\",\"unit\":\"OUNCE\"}},\"brand\":\"DollarDays\",\"description\":\"Crayons - 24 count boxed assorted crayon colors. Non Toxic crayons. ASDTMD-4236 approved crayons. These arts and crafts supplies crayons are safe for children.\",\"imageUrls\":\" https://dm61q01mhxuli.cloudfront.net/images/t30/uc1743.jpg","title":"Crayons - 24 Count (Pack of 48)\",\"upc\":\"852134000599\"}" {StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { Connection: keep-alive Date: Fri, 06 Apr 2018 15:07:52 GMT Set-Cookie: ebay=%5Esbf%3D%23%5E;Domain=. ebay.com;Path=/ Content-Length: 242 Content-Type: application/json; charset=ISO-8859-1 }} "{\n \"errors\" : [ {\n \"errorId\" : 1001,\n \"domain\" : \"OAuth\",\n \"category\" : \"REQUEST\",\n \"message\" : \"Invalid access token\",\n \"longMessage\" : \"Invalid access token. Check the value of the Authorization HTTP request header.\"\n } ]\n}" With new fresh OAuth User Token Payload: "{\"availability\":{\"shipLocationAvailability\":{\"quantity\":\"15000\"}},\"condition\":\"NEW\",\"packageWeightAndSize\":{\"dimensions\":{\"height\":\"12\",\"length\":\"7.5\",\"width\":\"8\",\"unit\":\"INCH\"},\"weight\":{\"weight\":\"15\",\"unit\":\"OUNCE\"}},\"brand\":\"DollarDays\",\"description\":\"Crayons - 24 count boxed assorted crayon colors. Non Toxic crayons. ASDTMD-4236 approved crayons. These arts and crafts supplies crayons are safe for children.\",\"imageUrls\":\" https://dm61q01mhxuli.cloudfront.net/images/t30/uc1743.jpg","title":"Crayons - 24 Count (Pack of 48)\",\"upc\":\"852134000599\"}" {StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { nnCoection: close RlogId: t6pitnmsgwj%28ciudbq%60anng%7Fu2h%3F%3Cwk%7Dukqlhqbuo*1423767-1629b835440-0x1013b X-EBAY-C-REQUEST-ID: ri=j3KRNcpy2FbJ,rci=ohFWzPfVWtHT31AX X-EBAY-C-VERSION: 1.0.0 X-EBAY-REQUEST-ID: 1629b83542b.a096c8a.7178b.fff58bd6!/sell/inventory/v1/!10.9.108.138!esbnewesbngcos[]!inventory_item_PUT!10.9.112.206!r1slrinvapi-envadvcdhidzs5k[SISClient[!slrinvsvc!10.9.98.94!r1slrinvsvc-envadvcdhidzs5k[UserLookupClient[!lookup.internalId!10.9.111.13!r1userinfo-envadvcdhidzs5k[]]]]!SISClient[!slrinvsvc!10.9.98.201!r1slrinvsvc-envadvcdhidzs5k[]]] Connection: keep-alive Date: Fri, 06 Apr 2018 15:11:39 GMT Set-Cookie: ebay=%5Esbf%3D%23%5E;Domain=. ebay.com;Path=/ Content-Length: 138 Content-Type: application/json }} "{\"errors\":[{\"errorId\":25001,\"domain\":\"API_INVENTORY\",\"subdomain\":\"Selling\",\"category\":\"SYSTEM\",\"message\":\"A system error has occurred.\"}]}"
sandbox500 server errorclient oauth token
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.

0 Answers

· Write an Answer

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.