Api access problem

Topic summary

API access fails in a Shopify Hydrogen custom storefront after changes to the main navigation menu. The Storefront API call via Hydrogen’s storefront.query returns an “Internal error” with a provided Request ID.

Key details:

  • Trigger: Modifying the main navigation and adding a new “gallery” page route.
  • Suspected cause: Including the attribute “type” in the GraphQL query leads to the failure; removing or altering it avoids the error (per the user’s observation).
  • Context: The “gallery” page is implemented as a Shopify metaObject (custom content model). Hydrogen is Shopify’s React framework for custom storefronts, and storefront.query executes Storefront API GraphQL queries.

Evidence:

  • Two screenshots are referenced as central: one showing the error output and one showing the query/metaObject setup.

Outcome/next steps:

  • No resolution yet. The user requests guidance on correctly querying/adding the metaObject-backed “gallery” route without triggering the “type” error.
  • Discussion remains open; key question is how to structure the query or route so that using “type” does not cause the internal error.
Summarized with AI on January 9. AI used: gpt-5.

I encountered a problem with API access after modifying the structure of my main navigation menu. Here is the error:

──────────────────────────────────────────────────────────────────────

error ──────────────────────────────────────────────────────────────────────
│ In Hydrogen’s storefront.query: │
│ │
│ Internal error. Looks like something went wrong on our end. │
│ Request ID: f26073b2-9871-4347-b411-5ff4fcdae6ef (include this in support requests). │
│ Request ID: f26073b2-9871-4347-b411-5ff4fcdae6ef

──────────────────────────────────────────────────────────────────────

I have identified the cause of this issue: the attribute ‘type’ in the query is responsible for the problem (refer to the screenshot). I was attempting to add a new page route (gallery) to my Shopify store, which is a metaObject (as shown in the screenshot). It seems I may not be doing this correctly. Do you have any suggestions on how to resolve this issue?