Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Newtonsoft.Json.JsonReaderException thrown when running Azure function(V2) locally

I created a queue trigger template of Azure function v2 in VS2017. When I ran the project locally, the function runtime started successfully. But when I created a message in the queue, VS downloaded a JsonSerialization.cs file and pointed out the error. enter image description here

Details of default Exception settings: enter image description here

It's a template generated by VS, so there seems no code issue like what I have found in other posts.

What I have tried:

  • Publish the project to Azure, works.
  • Run the project with function core tool(Cli) installed by npm, also works.

I guess the problem is related to the function Cli used by VS. But its runtime version is 2.0.11651.0, same as the one installed by npm.

Have anyone met this before or got any idea? Thanks in advance.

like image 981
Jerry Liu Avatar asked Apr 14 '18 12:04

Jerry Liu


1 Answers

This exception is internal and should be caught by the runtime. Feel free to ignore it in exception settings, and then everything should just work.

like image 115
Mikhail Shilkov Avatar answered Sep 30 '22 18:09

Mikhail Shilkov