{"action":"closed","issue":{"url":"https://api.github.com/repos/datalust/seqcli/issues/60","repository_url":"https://api.github.com/repos/datalust/seqcli","labels_url":"https://api.github.com/repos/datalust/seqcli/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/datalust/seqcli/issues/60/comments","events_url":"https://api.github.com/repos/datalust/seqcli/issues/60/events","html_url":"https://github.com/datalust/seqcli/issues/60","id":323709730,"number":60,"title":"Exception trying to perform any query","user":{"login":"BrianL-STCU","id":20843057,"avatar_url":"https://avatars3.githubusercontent.com/u/20843057?v=4","gravatar_id":"","url":"https://api.github.com/users/BrianL-STCU","html_url":"https://github.com/BrianL-STCU","followers_url":"https://api.github.com/users/BrianL-STCU/followers","following_url":"https://api.github.com/users/BrianL-STCU/following{/other_user}","gists_url":"https://api.github.com/users/BrianL-STCU/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianL-STCU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianL-STCU/subscriptions","organizations_url":"https://api.github.com/users/BrianL-STCU/orgs","repos_url":"https://api.github.com/users/BrianL-STCU/repos","events_url":"https://api.github.com/users/BrianL-STCU/events{/privacy}","received_events_url":"https://api.github.com/users/BrianL-STCU/received_events","type":"User","site_admin":false},"labels":[{"id":828040651,"url":"https://api.github.com/repos/datalust/seqcli/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-16T17:08:15Z","updated_at":"2018-05-17T03:38:20Z","closed_at":"2018-05-17T03:38:20Z","author_association":"NONE","body":"After following the [Getting Started instruction](https://github.com/datalust/seqcli/blob/dev/README.md#getting-started), SeqCli was giving me an error (likely because we require authentication):\r\n\r\n```text\r\nThe command failed: 401 - Please log in.\r\nSeq.Api.Client.SeqApiException: 401 - Please log in.\r\n   at Seq.Api.Client.SeqApiClient.<HttpSendAsync>d__27.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Seq.Api.Client.SeqApiClient.<PostReadStringAsync>d__17`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Seq.Api.ResourceGroups.ApiResourceGroup.<GroupPostReadStringAsync>d__10`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Seq.Api.ResourceGroups.DataResourceGroup.<QueryCsvAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at SeqCli.Cli.Commands.QueryCommand.<Run>d__8.MoveNext() in C:\\projects\\seqcli\\src\\SeqCli\\Cli\\Commands\\QueryCommand.cs:line 68\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at SeqCli.Cli.Command.<Run>d__11.MoveNext() in C:\\projects\\seqcli\\src\\SeqCli\\Cli\\Command.cs:line 83\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at SeqCli.Cli.Command.<Invoke>d__10.MoveNext() in C:\\projects\\seqcli\\src\\SeqCli\\Cli\\Command.cs:line 72\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at SeqCli.Cli.CommandLineHost.<Run>d__2.MoveNext() in C:\\projects\\seqcli\\src\\SeqCli\\Cli\\CommandLineHost.cs:line 49\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at SeqCli.Program.<Main>d__0.MoveNext() in C:\\projects\\seqcli\\src\\SeqCli\\Program.cs:line 51\r\n```\r\n\r\nAfter creating an API key token and manually putting it in `$home\\SeqCli.json`, I get:\r\n\r\n```text\r\nThe command failed: 500 - An unhandled error occurred while serving the request (token: ████████████████████████████████).\r\nSeq.Api.Client.SeqApiException: 500 - An unhandled error occurred while serving the request (token: ████████████████████████████████).\r\n   at Seq.Api.Client.SeqApiClient.<HttpSendAsync>d__27.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Seq.Api.Client.SeqApiClient.<PostReadStringAsync>d__17`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Seq.Api.ResourceGroups.ApiResourceGroup.<GroupPostReadStringAsync>d__10`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Seq.Api.ResourceGroups.DataResourceGroup.<QueryCsvAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at SeqCli.Cli.Commands.QueryCommand.<Run>d__8.MoveNext() in C:\\projects\\seqcli\\src\\SeqCli\\Cli\\Commands\\QueryCommand.cs:line 68\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at SeqCli.Cli.Command.<Run>d__11.MoveNext() in C:\\projects\\seqcli\\src\\SeqCli\\Cli\\Command.cs:line 83\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at SeqCli.Cli.Command.<Invoke>d__10.MoveNext() in C:\\projects\\seqcli\\src\\SeqCli\\Cli\\Command.cs:line 72\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at SeqCli.Cli.CommandLineHost.<Run>d__2.MoveNext() in C:\\projects\\seqcli\\src\\SeqCli\\Cli\\CommandLineHost.cs:line 49\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at SeqCli.Program.<Main>d__0.MoveNext() in C:\\projects\\seqcli\\src\\SeqCli\\Program.cs:line 51\r\n```\r\n\r\nOn the Seq server, **Settings** → **Diagnostics** → **Download a full diagnostic report** contains:\r\n\r\n```text\r\nNewtonsoft.Json.JsonSerializationException: Error converting value {null} to type 'System.Boolean'. Path 'IsRestricted', line 1, position 113. ---> System.InvalidCastException: Null object cannot be converted to a value type.\r\n   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)\r\n   --- End of inner exception stack trace ---\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r\n   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\r\n   at Newtonsoft.Json.JsonSerializer.Deserialize[T](JsonReader reader)\r\n   at Seq.Server.Web.SeqNancyModule.ReadBody[T]()\r\n   at Seq.Server.Web.Api.SignalContentModule.ReadPostedSignal()\r\n   at Seq.Server.Web.Api.EventsModule.<.ctor>b__5_1(Object p)\r\n   at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)\r\n```"}}
{"actor":{"display_login":"nblumhardt"}}