A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi there,
We've recently noticed (within the past hour or so) that `graphql-codegen` is failing for the Storefront API. We're using the Shopify Application Remix template, for some context.
Generating types from the Admin API is working fine, but when generating Storefront API types we're receiving the following error:
$ graphql-codegen -p store ✔ Parse Configuration ⚠ Generate outputs ❯ Generate to ./app/types/storefront-2024-07.schema.json ✖ Could not obtain introspection result, received the following as response; { data: { directive: { fields: [Array] }, field: { fields: [Array] }, type: { field… ◼ Load GraphQL documents ◼ Generate ❯ Generate to ./app/types/storefront.types.ts ✖ Could not obtain introspection result, received the following as response; { data: { directive: { fields: [Array] }, field: { fields: [Array] }, type: { field… ◼ Load GraphQL documents ◼ Generate ❯ Generate to ./app/types/storefront.generated.ts ✖ Could not obtain introspection result, received the following as response; { data: { directive: { fields: [Array] }, field: { fields: [Array] }, type: { field… ◼ Load GraphQL documents ◼ Generate
Is anyone else experiencing this? My first thought is there's an issue on Shopify's end, and hopefully, this will be resolved soon. Thought I'd post this here though in case others are experiencing the same issue / have any suggestions.
Many thanks