Manage Shopify webhooks using our new Amazon EventBridge integration

Highlighted
New Member
1 0 2

hello help i get this error when registering the webhook

{
"webhook": {
    "topic""products/update",
    "address""arn:aws:events:us-east-1::event-source/aws.partner/shopify.com/4051183/awesome-app-webhooks",
    "format""json"
  }
}

 

Response:

{
    "errors": {
        "address": [
            "is invalid",
            "is an AWS ARN and includes api_client_id '4051183' instead of '4051275'"
        ]
    }
}
Highlighted
Tourist
7 1 0

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"
    ]
  }
}

 

0 Likes
Highlighted
New Member
1 0 1

The same problem haunts my project. Is it Shopify integration bug, or the docs miss necessary information?

Highlighted
New Member
1 0 0

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
      }
    }
  }
}
0 Likes
Highlighted
New Member
1 0 0

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

0 Likes
Highlighted
New Member
1 0 0

Did you find any workaround for this from admin panel? (not api level...) I checked the response error code is 422 . The problem is with the arn:aws:events:<region>::  ...

linking a webhook to aws eventbridgelinking a webhook to aws eventbridge

0 Likes
Highlighted
New Member
1 0 2

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"
  }
}

 

Highlighted
New Member
1 0 0

yes I followed this instructions but still i am getting error 

0 Likes