You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
That's interesting, it looks like your server is reaching the proxy after parsing the request body. The data and end events only fire once per request, so it's likely that something in your call stack is consuming those events before it reaches the proxy call.
If you're using Next.js API routes, you could maybe disable the bodyParser setting for that route, as per https://nextjs.org/docs/api-routes/api-middlewares#custom-config. That should stop the server from consuming those events before it reaches the proxy code.
I want to use Shopify.Utils.graphqlProxy with NextJS (API-Routes) without koa.
like this:
pages/api/graphql.ts
But these two events do not fire.
https://github.com/Shopify/shopify-node-api/blob/bc70452e05de5f9209cdf21e0bf22edde3cce47f/src/utils/graphql_proxy.ts#L22
https://github.com/Shopify/shopify-node-api/blob/bc70452e05de5f9209cdf21e0bf22edde3cce47f/src/utils/graphql_proxy.ts#L26
I have confirmed that I can proxy with the following code.
Could you give me some advice about this?
The text was updated successfully, but these errors were encountered: