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

EventBridge -> SQS. Failed to create a MessageEnvelop #97

Closed
careri opened this issue Feb 16, 2024 · 2 comments
Closed

EventBridge -> SQS. Failed to create a MessageEnvelop #97

careri opened this issue Feb 16, 2024 · 2 comments
Labels
bug Something isn't working p2 This is a standard priority issue queued

Comments

@careri
Copy link

careri commented Feb 16, 2024

Hi,

I've got a simple setup where I publish an event to EventBridge.
A simple rule that matces a source and forwards to a SQS.

I'm running commit #96
OS: Windows 11

Publishing works as expected. Consuming fails, since the detail of the EventBridge envelope is an object and not a string:

Category: AWS.Messaging.Serialization.EnvelopeSerializer
Message: Failed to create a MessageEnvelope
Exception: System.InvalidOperationException: The requested operation requires an element of type \u0027String\u0027, but the target element has type \u0027Object\u0027.
   at System.Text.Json.ThrowHelper.ThrowJsonElementWrongTypeException(JsonTokenType expectedType, JsonTokenType actualType)
   at System.Text.Json.JsonDocument.GetString(Int32 index, JsonTokenType expectedType)
   at AWS.Messaging.Serialization.EnvelopeSerializer.GetMessageEnvelopeConfiguration(Message sqsMessage)
   at AWS.Messaging.Serialization.EnvelopeSerializer.ConvertToEnvelopeAsync(Message sqsMessage)

I've fixed the failing line. Will create a pull request.

@careri
Copy link
Author

careri commented Feb 16, 2024

PR:
#98

careri added a commit to careri/aws-dotnet-messaging that referenced this issue Feb 19, 2024
@ashishdhingra ashishdhingra added bug Something isn't working needs-review p2 This is a standard priority issue labels Mar 7, 2024
@96malhar
Copy link
Contributor

This issue has been addressed via #114.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p2 This is a standard priority issue queued
Projects
None yet
Development

No branches or pull requests

4 participants