question

kanyesgrl04 avatar image
1 Like"
kanyesgrl04 asked ·

Getting "A user error has occurred. IAF token supplied is invalid." while publishing item.

Hello, I am trying to Publish FBA inventory on eBay. After creation of inventory than offer, I am calling Publish Offer API, which works fine sometimes, And other times I get error response mentioned below.. { statusCode: 400, content: '{"errors":[{"errorId":25002,"domain":"API_INVENTORY","subdomain":"Selling","category":"REQUEST","message":"A user error has occurred. IAF token supplied is invalid. "}]}', headers: { 'content-length': '169', cneonction: 'close', date: 'Fri, 10 Feb 2017 07:43:43 GMT', rlogid: 't6pitnmsgwj%28ciudbq%60anng%7Fu2h%3F%3Cwk%7Dukqlhqbuo*2476%3A%3C4-15a26fa5105-0x2da2', 'set-cookie': [Object], 'x-ebay-c-request-id': 'ri=jbQUXeecaheW,rci=5Vur4jDxVjYFXba9', 'x-ebay-c-version': '1.0.0', 'x-ebay-request-id': 'rci=5Vur4jDxVjYFXba9,ri=D%2Bfj5QnDKW7W!slrinvsvc!10.9.100.125!r1slrinvsvc-envadvcdhidzs5k[]]]', 'content-type': 'application/json', connection: 'keep-alive' }, data: { errors: [Object] } } } I did some research but not sure why Publish Offer API is treating valid oAuth token as invalid. Same token is working fine for other API calls. This issue seems random to me, because some times I am successfully getting listingId. My createInventory create Offer and other Inventory APIs are working fine. Currently I am testing on sandbox environment. Please give your valuable suggestions..
sandboxinventory apiebay-apifulfillment apiofferpublish offer errorinventory
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.

zhuowei.developersupport@ebay.com avatar image
0 Likes"
zhuowei.developersupport@ebay.com answered ·
Hi kanyesgrl04, This has been reported to our engineering team. Does retry work for the same API request with the same OAuth token? Best Regards,
· 2 · Share
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.

Has there been any update on this? I received the same error message for the below request: Date: Mon, 20 Feb 2017 16:28:20 GMT RlogId: t6pitnmsgwj%28ciudbq%60anng%7Fu2h%3F%3Cwk%7Dukqlhqbuo*2476%3A%3C5-15a5c5a351a-0x5e6e X-EBAY-C-REQUEST-ID: ri=llm2atn%2BZN%2BR,rci=oBY1SEdr2g3tjSFb X-EBAY-C-VERSION: 1.0.0 X-EBAY-REQUEST-ID: rci=oBY1SEdr2g3tjSFb,ri=8HMuDcBufJ1K!slrinvsvc!10.9.100.60!r1slrinvsvc-envadvcdhidzs5k[]]] {"errors":[{"errorId":25002,"domain":"API_INVENTORY","subdomain":"Selling","category":"REQUEST","message":"A user error has occurred. IAF token supplied is invalid. "}]}
0 Likes 0 · ·
I should also note that generating a new OAUth token did not fix this request for me. Now I get a 400 Bad request with the following response when retrying with a new token: https://api.sandbox.ebay.com/sell/inventory/v1/offer/5008080010/publish { "errors": [ { "errorId": 25002, "domain": "API_INVENTORY", "subdomain": "Selling", "category": "REQUEST", "message": "A user error has occurred. IAF token supplied is invalid. " } ] } RlogId →t6pitnmsgwj%28ciudbq%60anng%7Fu2h%3F%3Cwk%7Dukqlhqbuo*2476%3A%3C5-15a5c72640f-0x5e3f
0 Likes 0 · ·
zhuowei.developersupport@ebay.com avatar image
0 Likes"
zhuowei.developersupport@ebay.com answered ·
Hi, This issue has been fixed. Please let us know if you are still getting the error. Best Regards,
· Share
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.

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ answered ·
For debugging purposes, leaving my RlogId here as well. It might help locating the issue. A user error has occurred. Die Gültigkeit des IAF-Tokens ist abgelaufen. (RlogId: t6pitnmsgwj70%3D9un%7Fpitnmsgwj70*27633%3C6-15bec26a422-0x5cd5)
· Share
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.

zhuowei.developersupport@ebay.com avatar image
0 Likes"
zhuowei.developersupport@ebay.com answered ·
Hi rjd-ca, I am sorry but we don't have an ETA yet. For this error, would you retry the same call? The api call will usually go through when you retry with the same Oauth token. Best Regards,
· 1 · Share
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.

Ok thank you for responding. I have request retry logic for 500 level response status codes along with 429 (rate limit exceeded). I did not expect to need to retry 400 level requests as well since they usually indicate user error and not intermittent internal server issues. If you cannot fix this problem I would greatly appreciate it if this error could be changed to a 500 level response to indicate a server side issue. Also the error code being returned right now is 25002 which further implicates user error which is not the case here. 25001 would be a more appropriate error code.
0 Likes 0 · ·

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.