---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (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.))
---> System.AggregateException: One or more errors occurred. (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.)
---> 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, ReadOnlySpan`1 bytes)
at System.Text.Json.Utf8JsonReader.Read()
at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
at System.Text.Json.JsonDocument.ParseAsyncCore(Stream utf8Json, JsonDocumentOptions options, CancellationToken cancellationToken)
error throws at Victoria\src\Rest\Search\SearchResponse.cs:line 43 at Victoria\src\LavaNode.cs:line 311 from LoadTrackAsync()
A possible solution would be to use TryParse() at the LavaTrack constructor/property setter, and if it fails then fallback to either Int32.MaxValue or 0
Error message:
Victoria debug log:
error throws at
Victoria\src\Rest\Search\SearchResponse.cs:line 43
atVictoria\src\LavaNode.cs:line 311
fromLoadTrackAsync()
A possible solution would be to use
TryParse()
at theLavaTrack
constructor/property setter, and if it fails then fallback to either Int32.MaxValue or 0discord convo link: message