Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
432 stars 130 forks source link

Webhook cannot be deployed (Validation error - Unexpected keys were found) #4757

Open Qtny opened 1 month ago

Qtny commented 1 month ago

I was encountered a validation error when I tried update my webhooks via "shopify app deploy".

I deployed this exact same file 2 months ago with the webhook settings below :

[webhooks]
api_version = "2024-04"

[[webhooks.subscriptions]]
topics = [ "app_subscriptions/update", "app/uninstalled", "shop/update" ]
uri = "https://<my_domain>/api/webhooks"

[[webhooks.subscriptions]]
uri = "https://<my_domain>/api/webhooks"
compliance_topics = [ "customers/data_request", "customers/redact", "shop/redact" ]

The error states :

Version couldn't be created.
webhooks
Validation errors
- Unexpected key(s) were found

The previous deployment works with this exact code but it just does not work now. Did Shopify changed something recently?

gonzaloriestra commented 2 days ago

Hi! Sorry for the late response.

Could you please upgrade your CLI version and share the output of shopify app deploy --verbose?