Need help with 403 Forbidden error in Remix App using GraphQL?

Topic summary

A developer is encountering a 403 Forbidden error when attempting to execute a GraphQL query in a Remix-based Shopify app using Prisma. The query aims to fetch product data but fails during authentication.

Troubleshooting steps already attempted:

  • Verified app scopes
  • Checked App URL configuration
  • Confirmed Client ID and Client Secret are correct

Despite these checks, the error persists after several hours of debugging.

Proposed solution:
One community member suggests resetting the app’s authentication tokens using the command:

shopify app dev --reset

This approach has reportedly resolved similar 403 errors in the past.

Current status: The issue remains unresolved for the original poster, with limited community engagement so far.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hello everyone,

Thank you in advance for your help, I want to rebuild one of my app with the new stack remix->prisma.

So I just started and want to do a simple query with graphql in my app.jsx

export const loader = async ({ request }) => {
  const { admin } = await authenticate.admin(request);

  admin.graphql(
    `#graphql
  query getProducts {
    products (first: 3) {
      edges {
        node {
          id
          title
        }
      }
    }
  }`
  ).catch((error)=>{
    console.log(error);
  });

  return json({ apiKey: process.env.SHOPIFY_API_KEY || "" });
};

Unfortunately I get a forbidden error :

source: '{"errors":{"networkStatusCode":403,"message":"GraphQL Client: Forbidden","response":{}}}'

So I already checked :

Scopes,

AppURL,

Client ID,

Client Secret

Honestly it make several hours I try to find the origin of issue and I am totally lost.

I would be really happy if someone can provide me insight (if you need more part of code I will provide).

1 Like

Sometime, I also facing with the same issue. Does anyone have the way to fix it?

In my case it allways helps to reset the app´s Authentication Tokens

shopify app dev --reset