Internal GraphQL error (404 ) when going through auth process

versuslabs
New Member
2 0 0

I get a 404 GraphQL error when going through auth process. The error occurs in the GraphQL mutation that appears in get-subscription-url.js in the shopify-app-node github repo and the tutorials.

export const getSubscriptionUrl = async ctx => {
  const { client } = ctx;
  const confirmationUrl = await client
    .mutate({
      mutation: RECURRING_CREATE(process.env.HOST)
    })
    .then(response => response.data.appSubscriptionCreate.confirmationUrl);

  return ctx.redirect(confirmationUrl);
};

Request ID: fcfa3f12-0c6d-4d03-90af-157b3e03567f

0 Likes