-
Notifications
You must be signed in to change notification settings - Fork 55
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
Message headers not available to node trigger functions #119
Comments
any progress on this? still seeing |
Hi @teebu, are you using the 2.x version of the RabbitMQ extension? I remember we had this issue for .NET isolated function apps, which was fixed with 2.x. If not, it would be quicker for me to take a look if you can provide a sample application that reproduces the issue. |
How do i check the version of the rabbitMQ extension? I am using whatever comes without making any modifications or custum installs.
|
I think you are getting the RabbitMQ extension through extension bundle which has the major version of extension set to 1.x. We are not allowed to increment the major version of RabbitMQ extension to 2.x in existing bundles and we need to wait for next major version of the bundle to be released. We have initiated discussion internally on how to get around this limitation. Can you try installing the RabbitMQ extension directly by following this documentation section?. I haven't tried it out myself but the command to install would be something similar to below. Make sure that you save (cache or commit) your project before running the command: func extensions install --package Microsoft.Azure.WebJobs.Extensions.RabbitMQ --version 2.0.3 Let me know if the extension install fails, or if the issue persists even after that and we will try reproducing the issue on our side. |
BTW, here is the other issue that I think is related and was fixed in v2.x: #173 |
Hi @teebu, did upgrading the RabbitMQ extension solve the problem? Sorry for following up late on this. |
I haven't yet. |
Actually, your dotnet example version doesn't work for me either. I get the eventargs, but the basicproperties remains empty. Whereas when I manually look at the message in RabbitMQ management, the reply-to property is set, and this is one that I absolutely need. |
The
context.bindingData.basicProperties
is coming across as its class name instead of its object data (as expected). Because of this, node workers don't have access to the messagebasicProperties.headers
.Node trigger function:
Output:
Comparable trigger for dotnet (which works correctly):
Output
Setup notes
The text was updated successfully, but these errors were encountered: