Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.92k stars 442 forks source link

Unable to parse host configuration file #10421

Open ccarmannt opened 4 weeks ago

ccarmannt commented 4 weeks ago

Investigative information

Azure fails to parse the attached host.json file. It provides only this error in the portal:

System.FormatException : Unable to parse host configuration file 'C:\home\site\wwwroot\host.json'. ---> 
Newtonsoft.Json.JsonReaderException : After parsing a value an unexpected character was encountered: ". Path 'extensions', line 8, position 4

But there is no "extensions" element in the file. Is it being read from a cache somewhere?

Expected behavior

The file should be parsed correctly.

Actual behavior

The file is not parsed correctly.

Known workarounds

None found. I have attempted restarting the app. I have attempted stopping the app for a while and then restarting it. Neither was effective. Additionally, running the function in my local development environment works fine, no complaints about this file.

Related information

host.json

bhagyshricompany commented 3 weeks ago

Thanks for informing please share the repro steps and host.json file config.

ccarmannt commented 3 weeks ago

The config file is already attached.

I don't have a known reproducible scenario. All I know is I changed it somehow that caused the parsing error, then reverted to the original. But after reverting to the original, the error didn't go away.

bhagyshricompany commented 3 weeks ago

ok will check and update