MONEI / Shopify-api-node

Node Shopify connector sponsored by MONEI
https://monei.com/shopify-payment-gateway/
MIT License
954 stars 280 forks source link

shopify.order.cancel({ id }), name: "HTTPError", code: "ERR_NON_2XX_3XX_RESPONSE" #644

Open Robogram opened 10 months ago

Robogram commented 10 months ago

shopify.order .cancel({ id }) .then((order) => { res.send(order) }) .catch((err) => res.send(err));

catch: { "name": "HTTPError", "code": "ERR_NON_2XX_3XX_RESPONSE", "timings": { "start": 1704787314067, "socket": 1704787314069, "lookup": 1704787314090, "connect": 1704787314122, "secureConnect": 1704787314170, "upload": 1704787314171, "response": 1704787314319, "end": 1704787314323, "phases": { "wait": 2, "dns": 21, "tcp": 32, "tls": 48, "request": 1, "firstByte": 148, "download": 4, "total": 256 } } }

lpinca commented 10 months ago

The issue description is not very useful. Can you add more details? Are you using a specific API version? Did you try to do the same request with another HTTP client (curl, Postman, etc.)?