A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Trying to register an event bridge webhook and running into a super frustrating issue both using the node SDK and using the GraphQL API directly via Postman/Insomnia.
I post the mutation and get back a 200 status but body gives:
{
"data": {
"eventBridgeWebhookSubscriptionCreate": {
"webhookSubscription": null
}
}
}
What could be the cause? What am I missing?
Here's the mutation and variables for reference:
mutation eventBridgeWebhookSubscriptionCreate($topic: WebhookSubscriptionTopic!, $webhookSubscription: EventBridgeWebhookSubscriptionInput!) {
eventBridgeWebhookSubscriptionCreate(topic: $topic, webhookSubscription: $webhookSubscription) {
webhookSubscription {
id
topic
format
endpoint {
__typename
... on WebhookEventBridgeEndpoint {
arn
}
}
}
}
}
{
"topic": "CARTS_UPDATE",
"webhookSubscription": {
"arn": "arn:aws:events:us-east-1::event-source/aws.partner/shopify.com/123456789/test-event-source",
"format": "JSON"
}
}
If helpful for debugging purposes the store is daily-digest-test-store.myshopify.com
Hey @DoneDigital ,
Just wanted to confirm if you already followed the Amazon EventBridge webhook setup guide here that goes over requirements, configuration, and setup of EventBridge - including the steps required in the Partner Dashboard > App Setup menu?
If so, and you are still facing unexpected behavior, I'd suggest logging an x-request-id from the API response header. From the Partner Dashboard > Support menu, select the Report an Issue option and fill out the form with any additional information you can provide around this issue.
While there is no guarantee that all submission are replies to, this is the best place to submit unexpected behavior involving the API and webhooks.
Hope this helps - Cheers!
awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog