Bug - Server 500 API error when adding attribute to listing before manually publish

59 views
Skip to first unread message

Tony Yau

unread,
Mar 20, 2017, 6:07:02 PM3/20/17
to Etsy API
Hi Etsy,

I'm here to report an API bug. Below are the details.


Steps to reproduce this bug:

1. Create listing with API
2. Add attributes


Code:

$oauth->fetch('https://openapi.etsy.com/v2/listings/<:listing_id>/attributes/200', ['value_ids'=>[<:color value>]], OAUTH_HTTP_METHOD_PUT);

eg. $oauth->fetch('https://openapi.etsy.com/v2/listings/504839268/attributes/200', ['value_ids'=>[10]], OAUTH_HTTP_METHOD_PUT);

Expected result:

HTTP 200


Error:

Invalid auth/bad request (got a 500, expected HTTP/1.1 20X or a redirect)
Server Error


What I found:

1. Manually editing the listing, then click "publish".
2. Run the above code again. Then succeeded.


Tony
Reply all
Reply to author
Forward
0 new messages