Bug: JsonException: The input does not contain any JSON tokens.
See original GitHub issuePlease make sure your bug isn’t already listed on HASS.Agent’s issue tracker:
https://lab02research.youtrack.cloud/
There’s a list of open bugs & features on the right. On the left you can see what’s being worked on, what’s planned and what’s ready for the next release.
If you’re not sure, don’t worry, just go ahead and we’ll discuss 😃
Describe the bug Notifications are not showing up
To Reproduce Steps to reproduce the behavior: New installation
Expected behavior Notification popup not showing
Screenshots N/A
Misc info (please complete the following information):
- Windows build (ideally screenshot/info of
winver.exeoutput): 21H2 build 19044.2006 - Windows’ UI language: EN
- HASS.Agent version: 2022.12.0
Please check what’s applicable (multiple answers possible):
- Installed via installer
- Installed manually
- Problem occurs in HASS.Agent
- Problem occurs in Satellite Service
Additional context
Logs
2022-09-23 14:18:56.351 -07:00 [INF] [HASS_API] Home Assistant version: 2022.9.4
2022-09-23 14:18:56.479 -07:00 [INF] [LOCALAPI] listening on port 5115
2022-09-23 14:18:56.565 -07:00 [INF] [HASS_API] System connected with http://192.168.1.61:8123
2022-09-23 14:18:58.324 -07:00 [INF] [MQTT] Initial registration completed
2022-09-23 17:35:03.461 -07:00 [INF] [NOTIFIER] Attempting to show test notification …
2022-09-23 17:35:03.478 -07:00 [INF] [NOTIFIER] Test notification attempt completed
2022-09-23 17:35:55.445 -07:00 [INF] [NOTIFIER] Attempting to show test notification …
2022-09-23 17:35:55.453 -07:00 [INF] [NOTIFIER] Test notification attempt completed
2022-09-23 17:39:09.069 -07:00 [FTL] [LOCALAPI] Error while processing incoming notification: 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.
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.
—> 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.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
— End of inner exception stack trace —
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonReaderState& readerState, Boolean isFinalBlock, ReadOnlySpan1 buffer, JsonSerializerOptions options, ReadStack& state, JsonConverter converterBase)
at System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonConverter converter, JsonSerializerOptions options)
at System.Text.Json.JsonSerializer.ReadAllAsync[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken)
at HASS.Agent.API.ApiDeserialization.DeserializeAsync[T](Stream stream, CancellationToken token)
at HASS.Agent.API.ApiEndpoints.NotifyRoute(IHttpContext context)
2022-09-23 17:40:05.445 -07:00 [INF] [NOTIFIER] Attempting to show test notification …
2022-09-23 17:40:05.452 -07:00 [INF] [NOTIFIER] Test notification attempt completed
2022-09-23 18:31:49.257 -07:00 [INF] [SYSTEM] Application shutting down
2022-09-23 18:31:49.260 -07:00 [INF] [MQTT] Disconnected
2022-09-23 18:31:49.267 -07:00 [INF] [SYSTEM] Application shutdown complete
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Related StackOverflow Question
It was windows alerts that were disabled. Thank you for great app!
From: LAB02 Research | Sam @.> Sent: Thursday, October 20, 2022 6:53 AM To: LAB02-Research/HASS.Agent @.> Cc: Petar Vučetin @.>; Author @.> Subject: Re: [LAB02-Research/HASS.Agent] Bug: JsonException: The input does not contain any JSON tokens. (Issue #172)
Ah, then there’s something wrong with your Windows settings.
Please follow all steps on this page:
https://hassagent.readthedocs.io/en/latest/notifications/notification-debugging-client-side/
— Reply to this email directly, view it on GitHub https://github.com/LAB02-Research/HASS.Agent/issues/172#issuecomment-1285583386 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AABL3RN3QGS3HADFBWIGKZLWEFFEDANCNFSM6AAAAAAQUN3DMU . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AABL3RLBGUQGMRSJVLBG45LWEFFEDA5CNFSM6AAAAAAQUN3DMWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSMUBZBU.gif Message ID: @.*** @.***> >
Ah, then there’s something wrong with your Windows settings.
Please follow all steps on this page:
https://hassagent.readthedocs.io/en/latest/notifications/notification-debugging-client-side/