You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously the address field was available to be set in \initializers\shopify_app.rb
ShopifyApp.configure do |config|
config.webhooks = [
{topic: 'carts/update', path: 'webhooks/carts_update', address: 'EVENT_BRIDGE_ARN_ADDRESS', format: 'json'}
]
end
ShopifyApp::WebhooksManager no longer expects the :address in the initializer, and it seems that the reason is that it now only supports :http and does not support :event_bridge, and :pub_sub since the address set is the http ENV['HOST']
ShopifyApp.configure do |config|
config.webhooks = [
{topic: 'carts/update', path: 'webhooks/carts_update'}
]
end
The resulting webhook registration looks like this:
Looks like it is not possible to set an :event_bridge or :pub_sub address in the initializer and the webhook is registered as http. I am only able to set or update the address directly such as with the REST API:
ShopifyApp::WebhooksManager supports :http, :event_bridge, and :pub_sub address types in the initializer
Actual behavior
ShopifyApp::WebhooksManager only supports :http webhook address types and it seems that along with WebhooksController it is now designed specifically for http webhooks.
The text was updated successfully, but these errors were encountered:
Issue summary
Previously the address field was available to be set in \initializers\shopify_app.rb
ShopifyApp::WebhooksManager no longer expects the :address in the initializer, and it seems that the reason is that it now only supports :http and does not support :event_bridge, and :pub_sub since the address set is the http ENV['HOST']
The resulting webhook registration looks like this:
<ShopifyAPI::Webhook:0x000002a1bef6bff0
@address="ENV['HOST']/webhooks/shop_update",
@aliased_properties={},
@api_version="2023-01",
Looks like it is not possible to set an :event_bridge or :pub_sub address in the initializer and the webhook is registered as http. I am only able to set or update the address directly such as with the REST API:
shopify_api
version: 12.4.0shopify_app
version: 21.4.0Expected behavior
ShopifyApp::WebhooksManager supports :http, :event_bridge, and :pub_sub address types in the initializer
Actual behavior
ShopifyApp::WebhooksManager only supports :http webhook address types and it seems that along with WebhooksController it is now designed specifically for http webhooks.
The text was updated successfully, but these errors were encountered: