问题
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