Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending event with eventbridge client returns undefined when both successful or failure #84

Open
AT2406 opened this issue Dec 12, 2023 · 0 comments
Assignees

Comments

@AT2406
Copy link

AT2406 commented Dec 12, 2023

While using the EventBridgeClient to put events, the response from the request is undefined and makes it impossible to know whether or not the event was successfully sent without have a cloudwatch log group set up. The same can be said about testing the sending of events with localstack.

The output below is what is received after using the AWS SDK to sent an event, and using the AWS CLI the output is a JSON object of the entries.

Events sent successfully: {
  '$metadata': {
    httpStatusCode: 200,
    requestId: '7d7d7230-2ba9-47df-9365-e9c5fe559c5b',
    extendedRequestId: undefined,
    cfId: undefined,
    attempts: 1,
    totalRetryDelay: 0
  },
  Entries: [ { EventId: '7b8f902c-b455-cd10-ca02-a70759febd56' } ],
  FailedEntryCount: 0
}

Are there any ways of returning the response rather than undefined?

@oleiade oleiade self-assigned this Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants