-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error sending scheduled Message, null payload. #6816
Comments
Thanks for reporting @angelqmx Looks like the spec for scheduling messages also point to the need for the message to be encoded. @HarshaNalluru Can you please take a look at this? |
Hey @angelqmx, Thanks for reporting.
|
hello @HarshaNalluru today i have i very busy day i will try to make the example tomorrow or the weekend, in particular i was using a azure function to consume the message maybe is part of the bug. Gretings |
Thanks, @angelqmx !! |
@HarshaNalluru here is the example
` Using the encoding:
` As we can see the firts image show undifined, while the second image show the correct message |
Thanks for the detailed repro and your investigation, @angelqmx. Encoding the message seems to fix the issues here
Here is a branch with the change that fixes the issue - HarshaNalluru@36ab852 @angelqmx, Since you have found the fix, are you interested in contributing to the repo by making a PR to fix the issue? |
In retrospection, the issue seems to be that Azure Functions/Service Bus Explorer might be employing different ways to consume the message(probably leveraging the .NET SDK or some other technique) which is why we couldn't find the bug any sooner since our tests are completely relying on and meant to test the JS SDK only. |
I have no problem doing the PR, just one question after the fix encriptyng the message before sending is going to stop working? if that is the case if i update the lib is going to start failing? |
Update - updated after the discussion with @ramya-rao-a, see below - #6816 (comment) |
Some more info, @angelqmx!! [ Discussed offline with @ramya-rao-a ] : Summary Bug
Fix
Since fixing the bug(encoding in the library) would break existing users who are already doing the encoding on their end, we consider this to be a breaking change and will be shipping the fix in the next major version update. Till then, we are suggesting the following workaround. Workaround
Users are requested to leverage the workaround and we will be shipping the fix only in the next major release for this issue. |
#7372, fix will be shipped starting from the version-2.0.0-preview.1. |
Closing this issue as the workaround for when using v1 of the The next major version of the package will not need the workaround. |
When trying to send a schedule message using the code
The message is delivered on th correct time but the body is null. After checking the code on the sdk, on the schedule message the body is not being encrypted (which is diferent when we do a normal send), so if i add the line:
The message is delivered with the correct body.
The text was updated successfully, but these errors were encountered: