Comments (2)
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.
Hope this helps!
from shopify-api-js.
@paulomarg Thank you for your advice. Rather, it was a complete answer.
It works fine with the following settings:
// With NextApiRequest, `export const config` for Shopify.Utils.graphqlProxy to trigger events.
export const config = { api: { bodyParser: false } };
from shopify-api-js.
Related Issues (20)
- Support accessing Line Item IDs in Active Shopify Subscriptions
- Support pagination when searching customers with admin rest api HOT 1
- Unable to create customer with password using customerCreate on admin API node client HOT 1
- Expose RemixRestClient and GraphQLClient types for @shopify/shopify-app-remix HOT 1
- retries > 3 throws unexpected exception - cannot read properties of undefined (reading 'headers') HOT 8
- Managed Installation is broken when reinstalling from Admin's Settings. HOT 8
- GraphQL Codegen Fails with Multiple Errors When Generating Types for Shopify API HOT 4
- question: product types from rest api HOT 2
- Upgrade to new Shopify API version without upgrading `@shopify/shopify-api` package HOT 1
- Documentation pages return 404 HOT 1
- [API] Invalid API key or access token (unrecognized login or wrong password) Error HOT 3
- It would be great if @shopify/admin-api-client works with Subrequest Profiler out of the box.
- A new release of the Shopify API is due soon HOT 1
- Keep getting INTERNAL_SERVER_ERROR on the response of `productVariantsBulkCreate` query HOT 1
- Shopify afterAuth hook not registering webhooks HOT 3
- NEW BUG: storeAvailability locations missing HOT 2
- Customer deletion error: Disconnected before secure TLS was established HOT 1
- shopify.session.getCurrentId() fails to read request headers from Next.js app router HOT 6
- Delete application recurring charge is not working for the node lib HOT 1
- Timeout for admin rest resources HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shopify-api-js.