I’m following the shopify-api-js documentation to make requests to the GraphQL API through my app here (https://github.com/Shopify/shopify-api-js)
The moment I add the first import mentioned in the documentation.
import '@shopify/shopify-api/adapters/node';
I receive this error consistently and can not progress my testing.
╭─ error ────────────────────────────────────────────────────────────────────────────╮
│ │
│ │
│ The Partners GraphQL API responded unsuccessfully with the HTTP status 200 and │
│ errors: │
│ │
│ [ │
│ { │
│ "message": "Too many requests", │
│ "extensions": { │
│ "code": "429" │
│ } │
│ } │
│ ] │
│ │
│ │
│ To investigate the issue, examine this stack trace: │
│ at (graphql-request/src/index.ts:410) │
│ throw new ClientError( │
│ at step (graphql-request/dist/index.js:63) │
│ op = body.call(thisArg, _); │
│ at next (graphql-request/dist/index.js:44) │
│ function verb(n) { return function (v) { return step([n, v]); }; } │
│ at fulfilled (graphql-request/dist/index.js:35) │
│ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { │
│ reject(e); } } │
│ at processTicksAndRejections (node:internal/process/task_queues:96) │
│
I found others who were reporting a similiar issue here but it looks like there was no answer: https://community.shopify.com/topic/1926357
Attempted Debugs:
- Created a new app with npm init @Shopify/[email removed] to see if it was just my app breaking, new demo app works (without theme extension).
- Tried a npm run dev – --reset, closing out terminal, starting a new terminal, restarting comp, tried it on a different development store, still hitting the error.