Shopify / Shopify/shopify-app-template-node

Shopify Webhook Trigger Issue - GDPR

Open
#1,220 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Waiting for Response
Dominant language
JavaScript
Stars
1k
Forks
434
PR merge metrics
No merged PRs in 30d

Description

Issue summary

I'm trying to trigger the webhook for gdpr using shopify cli and using the dashboard->customer but it's not working properly.
I'm not receiving any webhook call using the customer dashboard. But using the shopify webhook trigger command I'm getting the request from shopify but it's not sending me the right request params like {apiVersion: , domain: , topic: , webhookId: }

  • @shopify/shopify-app-express version: 1.0.0
  • Node version: v19.2.0
  • Operating system: Mac Version 13.1 (22C65)
2023-01-09 06:35:32 | backend    | [shopify-api/INFO] Processing webhook request | {apiVersion: , domain: , topic: , webhookId: }
2023-01-09 06:35:32 | backend    | [shopify-app/ERROR] Failed to process webhook: Error: Missing one or more of the required HTTP headers to process webhooks: [X-Shopify-API-Version]

Expected behavior

It should work properly on the GDPR requests.

Looks like something wrong with the GDPR requests or maybe an issue with the current package.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the GDPR webhook through the Shopify dashboard and Shopify CLI with @shopify/shopify-app-express 1.0.0, then compare the logged request headers and parameters. The reported failure is the missing X-Shopify-API-Version header; done means GDPR requests are received and processed with the expected apiVersion, domain, topic, and webhookId values.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.