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
QueueTrigger appears to be broke with Microsoft.NET.Sdk.Functions 1.0.19 #1889
Comments
I created an object with a single string property and posted it to the storage queue and the QueueTrigger works with that. This is a work around that one shouldn't need to do. Please make it better. |
We have also run into this today; even though you declare the queue trigger object as a string, the webjobs sdk is trying to json parse it, and it throws a Newtonsoft.Json.JsonReaderException on this line:
|
Hi guys! I'm dealing with the same on v 1.0.21 , and the main problem is that if you're using the [FunctionName("DeployTeamsConfiguration" )]
public static void Run(
[QueueTrigger(TEAMS_TASK_QUEUE)]
string teamTask,
[Table(TEAM_TASK_TABLE, "TeamsTask", "{queueTrigger}")]
TeamsConfiguration teamsConfig) |
Guys - I believe you're just seeing first chance exceptions in the debugger. The queue trigger does do a try/parse generating exceptions, but we handle those. Can you guys confirm that if you F5 past this error the function actually works as intended? If so, then you just need to change your VS exception settings to ignore these. |
Should it even try parse if the object type is set to string? |
yes I've used that as mitigation. |
Yes, the exceptions are jumping everytime the queued message doesn't match a json object. |
Just ran into this issue too. Posting a json formatted string into the queue removes the exception and If I use a Type as the message, its also serialized correctly. Still sees it as a pain that the exception is thrown |
@paulbatum this seems to be picking up steam. Not sure if something reverted in latest VS bits? I see this on both my machines that have VS 2017 15.9.0 Preview 2.0 |
Also noticed it with SDK 3.0 while it was not the case with 2.x. I understood that the underlying exception was indeed handled by the SDK but still annoying and confusing to get such errors while debugging. Would be great if this was not surfacing at all and as @nzthiago said, should it even try to deserialize and handle exception if the type is string. Might not be that easy to detect though... |
PR #1930 is out to address this |
The PR is now merged. For users to get this fix we'll need to release an updated build of the Microsoft.Azure.WebJobs.Extensions.Storage NuGet package and then users will have to grab the update. The package should be published by mid October. |
Closing because this has been fixed. |
Hi @paulbatum, do you by any chance, have a release date for this package? |
@ksoakellho should be within the next two weeks. |
Work with latest v3.0.1 Microsoft.Azure.WebJobs.Extensions.Storage, no exception is thrown. |
below is my Azure Function that worked with 1.0.14
I'm currently getting this error.
Since our code wasn't anywhere in the stack trace I changed the message that was being posted to the queue to a number and now I get
Also, can you please point me to the proper place for me to post that my local storage no longer appears in Cloud Explorer?
Thank you for an amazing product that in continuously getting more awesome.
The text was updated successfully, but these errors were encountered: