Shopify / Shopify/shopify-app-template-php
How to register Eventbridge for webhooks?
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 340
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Description
Hi Friends,
So far I am using the http method, now I want to use the AWS event bridge, so I tried this method for register webhook:
$url = "arn:aws:events:us-east-1::event-source/aws.partner/shopify.com/169*******/shopify-*****s"
$shop = "example.myshopify.com"
$type = "eventbridge"
$response = Registry::register($url, Topics::APP_UNINSTALLED, $shop, $session->access_token, $type);
and I got this error message:
Error for shop example.myshopify.com: ["Undefined array key \"arn\"","/var/www/web/vendor/shopify/shopify-api/src/Webhooks/Delivery/EventBridge.php",44]
Anybody has idea for this?
Thank you
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided Registry::register call and inspect vendor/shopify/shopify-api/src/Webhooks/Delivery/EventBridge.php at line 44. Reproduce the registration using the supplied EventBridge ARN, topic, shop, and access token, then determine why the expected "arn" value is missing. Done means the registration no longer raises the undefined array key error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, php
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100