Https://app.snipcart.com/api/orders returns 500 when using `productId`

According to the documentation on API: orders – Snipcart Documentation the following API request should return the first 50 orders for my product with id = 8.

$ curl -v -H "Accept: application/json" -u secret: "https://app.snipcart.com/api/orders?productId=8&offset=0&limit=50"

If I omit productId it works fine, but with productId I get HTTP/2 500:

< HTTP/2 500
< cache-control: private
< content-length: 36
< content-type: application/json; charset=utf-8
< request-context: appId=cid-v1:48f65c7b-986c-4ec3-89de-eb0160f55639
< access-control-expose-headers: Request-Context
< date: Fri, 15 Oct 2021 13:11:52 GMT
<
{ [36 bytes data]
100    36  100    36    0     0     52      0 --:--:-- --:--:-- --:--:--    52
* Connection #0 to host app.snipcart.com left intact
{
    "message": "An error has occurred."
}

Is there a better way to report bugs, other than this forum?

Can you try to add the format=excerpt parameter to your request URL? This will be much faster, I think that at the moment your query times out causing a 500 error.

URL should be: https://app.snipcart.com/api/orders?format=excerpt&productId=8&offset=0&limit=50

Let me know if that works.

It works just fine, and is a good solution. Your timeouts must be really low, since it throws the 500 reply really quickly without the format=excerpt ( ~500 ms):

$ time curl -s -H "Accept: application/json" -u secret: "https://app.snipcart.com/api/orders?productId=8&offset=0&limit=50"
{"message":"An error has occurred."}
0.01s user 0.00s system 2% cpu 0.635 total