scottmconway / shopgoodwill-scripts

A collection of scripts for programmatically interacting with Shopgoodwill
GNU General Public License v3.0
51 stars 17 forks source link

Catch Query Error in SGW Client #12

Closed scottmconway closed 2 years ago

scottmconway commented 2 years ago

I just found that SGW can respond with HTTP 200s without any sort of "error" key in the response JSON and still contain errors. For the query endpoint, I've noticed these differences:

We can use the latter to check for errors on this particular endpoint.

This API is truly something else.