https
when I get home and make sure that IgnoreSslErrors: true
is set.docker pull openalpr/agent
. I wonder why they haven't promoted 2.8.101 to the latest
?{"log":"Unhandled exception. System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.\n","stream":"stderr","time":"2021-01-06T20:07:49.152479816Z"}
{"log":" ---\u003e System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.\n","stream":"stderr","time":"2021-01-06T20:07:49.152551994Z"}
{"log":" at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader\u0026 json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)\n","stream":"stderr","time":"2021-01-06T20:07:49.152559522Z"}
{"log":" at System.Text.Json.Utf8JsonReader.Read()\n","stream":"stderr","time":"2021-01-06T20:07:49.152564002Z"}
{"log":" at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader\u0026 reader, ReadStack\u0026 readStack)\n","stream":"stderr","time":"2021-01-06T20:07:49.152567941Z"}
{"log":" --- End of inner exception stack trace ---\n","stream":"stderr","time":"2021-01-06T20:07:49.152572269Z"}
{"log":" at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack\u0026 readStack, JsonReaderException ex)\n","stream":"stderr","time":"2021-01-06T20:07:49.152576122Z"}
{"log":" at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader\u0026 reader, ReadStack\u0026 readStack)\n","stream":"stderr","time":"2021-01-06T20:07:49.152580175Z"}
{"log":" at System.Text.Json.JsonSerializer.ReadCore(Type returnType, JsonSerializerOptions options, Utf8JsonReader\u0026 reader)\n","stream":"stderr","time":"2021-01-06T20:07:49.152584295Z"}
{"log":" at System.Text.Json.JsonSerializer.Deserialize(String json, Type returnType, JsonSerializerOptions options)\n","stream":"stderr","time":"2021-01-06T20:07:49.152588296Z"}
{"log":" at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)\n","stream":"stderr","time":"2021-01-06T20:07:49.15259216Z"}
{"log":" at OpenAlprWebhookProcessor.HeartbeatService.AgentRegistration.RegisterAgentAsync(Uri serverUrl, String username, String password, Boolean ignoreSslErrors) in /src/OpenAlprWebhookProcessor/HeartbeatService/Registration/AgentRegistration.cs:line 39\n","stream":"stderr","time":"2021-01-06T20:07:49.152596174Z"}
{"log":" at OpenAlprWebhookProcessor.HeartbeatService.HeartbeatService.RegisterAgentAsync() in /src/OpenAlprWebhookProcessor/HeartbeatService/HeartbeatService.cs:line 151\n","stream":"stderr","time":"2021-01-06T20:07:49.152600446Z"}
{"log":" at OpenAlprWebhookProcessor.HeartbeatService.HeartbeatService.StartAsync(CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/HeartbeatService/HeartbeatService.cs:line 45\n","stream":"stderr","time":"2021-01-06T20:07:49.152604487Z"}
{"log":" at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)\n","stream":"stderr","time":"2021-01-06T20:07:49.152608554Z"}
{"log":" at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)\n","stream":"stderr","time":"2021-01-06T20:07:49.152614428Z"}
{"log":" at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)\n","stream":"stderr","time":"2021-01-06T20:07:49.152621063Z"}
{"log":" at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)\n","stream":"stderr","time":"2021-01-06T20:07:49.152627606Z"}
{"log":" at OpenAlprWebhookProcessor.Program.Main(String[] args) in /src/OpenAlprWebhookProcessor/Program.cs:line 21\n","stream":"stderr","time":"2021-01-06T20:07:49.152631555Z"}
{
"AllowedHosts": "*",
"OpenAlprAgent": {
"Cameras": [
{
"Latitude": 11.1111,
"Longitude": -11.1111,
"Manufacturer": "Dahua",
"Name": "abcdefgh",
"OpenAlprCameraId": 111111111,
"Password": "password",
"UpdateOverlayTextUrl": "http://10.200.200.14/cgi-bin/configManager.cgi?action=setConfig&VideoWidget[0].CustomTitle[1].Text=",
"Username": "admin"
}
],
"Hostname": "<redacted>",
"OpenAlprWebServer": {
"Endpoint": "http://10.200.200.54",
"IgnoreSslErrors": true,
"Username": "user",
"Password": "pass"
},
"Uid": "<redacted>",
"Version": "2.8.101"
},
"ConnectionStrings": {
"ProcessorContext": "Data Source=config/processor.db"
},
"WebRequestLoggingEnabled": false
}
appsettings.json
:{
"AllowedHosts": "*",
"OpenAlprAgent": {
"Cameras": [
{
"Latitude": 11.1111,
"Longitude": -11.1111,
"Manufacturer": "Dahua",
"Name": "<redacted>",
"OpenAlprCameraId": <redacted>,
"Password": "<redacted>",
"UpdateOverlayTextUrl": "http://10.200.200.14/cgi-bin/configManager.cgi?action=setConfig&VideoWidget[0].CustomTitle[1].Text=",
"Username": "admin"
}
],
"Hostname": "<redacted>",
"OpenAlprWebServer": {
"Endpoint": "http://10.200.200.54",
"IgnoreSslErrors": true,
"Username": "<redacted>",
"Password": "<redacted>"
},
"Uid": "<redacted>",
"Version": "2.8.101"
},
"ConnectionStrings": {
"ProcessorContext": "Data Source=config/processor.db"
},
"WebRequestLoggingEnabled": false
{"log":"Unhandled exception. System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a val
id JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.\n","stream":"stderr","time":"2021-01-06T20:17:48.012
202011Z"}
{"log":" ---\u003e System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid J
SON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.\n","stream":"stderr","time":"2021-01-06T20:17:48.012257906Z"}
{"log":" at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader\u0026 json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)\n","stream":"stderr","time":"2021-01-06T20:17:48.012265914Z"}
{"log":" at System.Text.Json.Utf8JsonReader.Read()\n","stream":"stderr","time":"2021-01-06T20:17:48.01227059Z"}
{"log":" at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader\u0026 reader, ReadStack\u0026 readStack)\n","stream":"stderr","time":"2021-01-06T20:17:48.012274836Z"}
{"log":" --- End of inner exception stack trace ---\n","stream":"stderr","time":"2021-01-06T20:17:48.01228148Z"}
{"log":" at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack\u0026 readStack, JsonReaderException ex)\n","stream":"stderr","time":"2021-01-06T20:17:48.012288289Z"}
{"log":" at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader\u0026 reader, ReadStack\u0026 readStack)\n","stream":"stderr","time":"2021-01-06T20:17:48.012301911Z"}
{"log":" at System.Text.Json.JsonSerializer.ReadCore(Type returnType, JsonSerializerOptions options, Utf8JsonReader\u0026 reader)\n","stream":"stderr","time":"2021-01-06T20:17:48.012312052Z"}
{"log":" at System.Text.Json.JsonSerializer.Deserialize(String json, Type returnType, JsonSerializerOptions options)\n","stream":"stderr","time":"2021-01-06T20:17:48.012316678Z"}
{"log":" at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)\n","stream":"stderr","time":"2021-01-06T20:17:48.012320688Z"}
{"log":" at OpenAlprWebhookProcessor.HeartbeatService.AgentRegistration.RegisterAgentAsync(Uri serverUrl, String username, String password, Boolean ignoreSslErrors) in /src/OpenAlprWebhookProcessor/HeartbeatService/Registration/AgentRegistration.cs:line 39\n","stream":"stderr","time":"2021-01-06T20:17:48.012325024Z"}
{"log":" at OpenAlprWebhookProcessor.HeartbeatService.HeartbeatService.RegisterAgentAsync() in /src/OpenAlprWebhookProcessor/HeartbeatService/HeartbeatService.cs:line 151\n","stream":"stderr","time":"2021-01-06T20:17:48.012331039Z"}
{"log":" at OpenAlprWebhookProcessor.HeartbeatService.HeartbeatService.StartAsync(CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/HeartbeatService/HeartbeatService.cs:line 45\n","stream":"stderr","time":"2021-01-06T20:17:48.012340046Z"}
{"log":" at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)\n","stream":"stderr","time":"2021-01-06T20:17:48.012346433Z"}
{"log":" at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)\n","stream":"stderr","time":"2021-01-06T20:17:48.012354573Z"}
{"log":" at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)\n","stream":"stderr","time":"2021-01-06T20:17:48.012361331Z"}
}
at the end of your file. plug your json into Best JSON Formatter and JSON Validator: Online JSON Formatter and click "format / beautify" it will tell you what's wrong.