You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the AWS Marketplace service returns empty entitlements the application errors and is thrown into an infinite loop.
To Reproduce
Steps to reproduce the behavior:
You can test this with an event that has empty entitlements:
For a simple example. Comment out this line in entitlement-sqs.js: const entitlementsResponse = await marketplaceEntitlementService.getEntitlements(entitlementParams).promise();
And replace it with something like:
const entitlementsResponse = {'Entitlements': []}
Then, trigger the function.
The function will error as shown in the screenshot (Which happened because a response from AWS in that structure was returned when actually calling the entitlements service).
Expected behavior
Either the marketplace service API call doesn't return an empty entitlement, OR a DLQ and better error handling is added to this application so that events like this are sent to the DLQ instead of being retried.
Screenshots
Desktop (please complete the following information):
OS: Mac
Browser: Chrome
Additional context
Also feel free to reach out: fernando.medina.corey(at)telcodr(dot)com to discuss.
The text was updated successfully, but these errors were encountered:
Describe the bug
When the AWS Marketplace service returns empty entitlements the application errors and is thrown into an infinite loop.
To Reproduce
Steps to reproduce the behavior:
You can test this with an event that has empty entitlements:
For a simple example. Comment out this line in
entitlement-sqs.js
:const entitlementsResponse = await marketplaceEntitlementService.getEntitlements(entitlementParams).promise();
And replace it with something like:
const entitlementsResponse = {'Entitlements': []}
Then, trigger the function.
Expected behavior
Either the marketplace service API call doesn't return an empty entitlement, OR a DLQ and better error handling is added to this application so that events like this are sent to the DLQ instead of being retried.
Screenshots
Desktop (please complete the following information):
Additional context
Also feel free to reach out: fernando.medina.corey(at)telcodr(dot)com to discuss.
The text was updated successfully, but these errors were encountered: