Skip to content

"Unexpected character encountered while parsing value: Q." when launching func #4806

@kpko

Description

@kpko

Version

4

Description

I'm using macOS, I freshly installed the functions cli via brew tap azure/functions / brew install azure-functions-core-tools. When I try to launch the cli on an empty folder, every variation of the cli crashes with this error:

kp ~/temp > func --help

Unhandled Exception: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: Q. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Azure.Functions.Cli.Common.DiskBacked`1.Create(String path) in D:\a\1\s\src\Azure.Functions.Cli\Common\DiskBacked.cs:line 27
   at Azure.Functions.Cli.Common.PersistentSettings..ctor(Boolean global) in D:\a\1\s\src\Azure.Functions.Cli\Common\PersistentSettings.cs:line 27
   at Azure.Functions.Cli.Program.Main(String[] args) in D:\a\1\s\src\Azure.Functions.Cli\Program.cs:line 12
zsh: abort      func --help

Steps to reproduce

  1. Install the cli via homebrew
  2. Run any command

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions