"Your app returned the wrong HTTP status code" when running an automated webhook check

"Your app returned the wrong HTTP status code" when running an automated webhook check

YashVegad
Shopify Partner
4 0 0

Hi, I'm looking for help with an error that I receive when running an automated check for common errors on "Implement an HMAC signature to verify webhooks". It says that "Your app returned the wrong HTTP status code" as I'm returning HTTP 200 instead of the expected HTTP 401 which is required when receiving an invalid Shopify HMAC header.

I'm also using Remix. My understanding is that I need some code that calculates a digital signature and compares it to the value in the X-Shopify-Hmac-SHA256 header, which is explained here: https://shopify.dev/docs/apps/build/webhooks/subscribe/https

I'm not sure how to do that with Remix though, so I'm looking for help with that. Thanks in advance.

Replies 0 (0)