You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I poked through the listings.rb file and found:
if state == :sold
sold_listings(shop_id, options)
else
get_all("/shops/#{shop_id}/listings/#{state}", options)
end
So passing sold doesn't actually use that as state parameter to pull listings. sold_listings() actually calls Etsy::Transaction.find_all_by_shop_id() to pull the sold out listings. I get the same Etsy::EtsyJSONInvalid error trying to call either of the Transaction methods (find_all_by_shop_id and find_all_by_buyer_id) directly, so it looks like the issue is with transactions. Note that I do have listings_r included in my oauth permission scope, so that isn't the problem.
Listing.find_all_by_shop_id()
is throwing Etsy::EtsyJSONInvalid when the state is set tosold
.Example:
All other valid states (active, inactive, expired, featured) work as expected.
The text was updated successfully, but these errors were encountered: