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

两盒软妹~` 提交于 2019-12-22 04:21:45

问题


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.

Details of default Exception settings:

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:


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.



来源:https://stackoverflow.com/questions/49831559/newtonsoft-json-jsonreaderexception-thrown-when-running-azure-functionv2-local

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!