Newtonsoft.Json.JsonReaderException thrown when ru

2019-04-24 01:07发布

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.

1条回答
地球回转人心会变
2楼-- · 2019-04-24 01:25

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.

查看更多
登录 后发表回答