I am trying to create a shopify app with node template , there i am making api in my express and fetching the api’s using useAuthenticatedfetch hook from the template itself ,but if i try to hit POST request using that authenticated fetch using POST headers and specify body in it , the body is sended in express backend,but while checking the request in chrome developer console network tab the payload is there ,if i log the body of the request in my express server the log is comming empty , how to solve this
Topic summary
Issue: A Shopify app built with the Node template uses an Express backend and the template’s useAuthenticatedFetch hook to call API routes. When sending a POST request with headers and a body, Chrome DevTools shows the payload, but logging the request body on the Express server returns empty.
Details:
- The POST request is made via useAuthenticatedFetch with specified headers and body.
- Network tab confirms the payload is present in the request.
- Express backend receives the request, but req.body (or equivalent) logs as empty.
Request for help: Guidance on why the POST body is empty in Express despite the payload appearing in the browser’s network inspection, and how to fix it.
Status: No resolution or action items yet; the question remains open.