hello help i get this error when registering the webhook
Response:
Subscribing to this topic. I have the same issue when `POST`ing this to the REST endpoint (I am using REST instead of graphql because of this issue
{
"webhook": {
"topic": "checkouts/create",
"address": "arn:aws:events:us-east-1:246797399506:rule/aws.partner/shopify.com/1891866/merchrock-stats/CHECKOUTS_CREATE",
"format": "json"
}
}
and the error response:
{
"errors": {
"address": [
"is invalid",
"is not a valid AWS ARN"
]
}
}
The same problem haunts my project. Is it Shopify integration bug, or the docs miss necessary information?
I'm getting the following error after copy/pasting from the tutorial:
mutation {
eventBridgeWebhookSubscriptionCreate(
topic: PRODUCTS_CREATE
webhookSubscription: {
arn: "arn:aws:events:us-east-1::event-source/aws.partner/shopify.com/...."
format: JSON
})
{
webhookSubscription {
id
}
userErrors {
message
}
}
}
I get the following response:
{
"data": {
"eventBridgeWebhookSubscriptionCreate": {
"webhookSubscription": null,
"userErrors": [
{
"message": "You cannot create a webhook subscription with the specified topic"
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 10,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1990,
"restoreRate": 100
}
}
}
}
I had the same bug and fixed it by using the workaround described here : https://community.shopify.com/c/Shopify-APIs-SDKs/AWS-EventBridge-set-up/m-p/816093
Hi all,
I think I understand the problem: the partner event bus ARN should not be copied from AWS Console at "Amazon EventBridge > Events > Event buses" (with format like arn:aws:events:eu-west-1:00000000:event-bus/aws.partner/shopify.com/12345678/my-app), this is the mapped event bus to create rules on. When you try to register a webhook with that ARN the Sopify API respond with "422 - address: is not a valid AWS ARN".
The correct ARN need to be copied from "Amazon EventBridge > Events > Partner event sources", with format like "arn:aws:events:eu-west-1::event-source/aws.partner/shopify.com/12345678/eataly-shopify-bundle" the is the EventSource ARN and not the EventBus ARN.
Here an example of REST API payload:
{
"webhook": {
"topic": "products/update",
"address": "arn:aws:events:eu-west-1::event-source/aws.partner/shopify.com/12345678/eataly-shopify-bundle",
"format": "json"
}
}
User | Count |
---|---|
28 | |
7 | |
7 | |
6 | |
4 |