Shopify / shopify-api-ruby

ShopifyAPI is a lightweight gem for accessing the Shopify admin REST and GraphQL web services.
MIT License
1.06k stars 473 forks source link

ShopifyAPI::Errors::InvalidWebhookError: Missing one or more of the required HTTP headers to process webhooks: ["x-shopify-shop-domain"] for customers_redact, shop_redact webhooks #1261

Closed netwire88 closed 10 months ago

netwire88 commented 10 months ago

Issue summary

Since Jan 8, 2024 (assuming related to 2024-01 release), we are seeing Missing one or more of the required HTTP headers to process webhooks: ["x-shopify-shop-domain"] to process webhooks errors for /customers_redact, /shop_redact webhooks

See below for info, IP's redacted

X-Shopify-Test : false
X-Request-Id : 442d1310-af02-472d-b861-b82569c4e794
Content-Length : 164
Version : HTTP/1.1
X-Request-Start : 1704816527008
User-Agent : Shopify-Captain-Hook
X-Shopify-Topic : customers/redact
Cf-Ipcountry : NL
X-Shopify-Webhook-Id : 948128c5-b69e-4143-a514-72768dba8885
Cf-Visitor : {"scheme":"https"}
Accept-Encoding : gzip
X-Forwarded-Port : 443
Total-Route-Time : 0
Connection : close
Cf-Ray : 842df0dc3e821c89-AMS
X-Shopify-Triggered-At : 2024-01-09T16:08:46.395212977Z
Via : 1.1 vegur
Accept : */*
X-Forwarded-Proto : https
Connect-Time : 0
Content-Type : application/json

Expected behavior

No error

Actual behavior

ShopifyAPI::Errors::InvalidWebhookError raised with Missing one or more of the required HTTP headers to process webhooks: ["x-shopify-shop-domain"]

Steps to reproduce the problem

TheSecurityDev commented 10 months ago

I'm still on the old webhook version and having this issue.

lizkenyon commented 10 months ago

Hi there 👋

I believe this issue has been resolved! Can you confirm you are no longer seeing these errors?

netwire88 commented 10 months ago

Thanks @lizkenyon We haven't seen this since Jan 9.