skip to Main Content

Nock: No match for request – Shopify

My nock call looks like as below app_url='myshop.app.com' result = nock(app_url, { reqheaders: { "content-type": "application/json", 'authorization': 'Basic Auth' } }) .get('/admin/products.json?collection_id=10001&limit=250&fields=id') .reply(200, { "products": [ { "id": 101}, {"id": 102}, ] }); Resolve : (node:1378) UnhandledPromiseRejectionWarning: Unhandled promise rejection…

VIEW QUESTION
Back To Top
Search