Shopify / Shopify/shopify-app-template-php

How to register Eventbridge for webhooks?

Open
#538 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.