question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JsonReaderException: 'a' is an invalid start of a property name

See original GitHub issue

Hi There,

I’m starting to see this issue pop up now.

 ---> System.Text.Json.JsonReaderException: 'a' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.Utf8JsonReader.Read()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, Utf8JsonReader reader, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedBytes)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at YoutubeExplode.Internal.Json.Parse(String source)
   at YoutubeExplode.ReverseEngineering.Responses.WatchPage.TryGetPlayerConfig()
   at YoutubeExplode.Videos.Streams.StreamClient.GetStreamContextFromWatchPageAsync(VideoId videoId)
   at YoutubeExplode.Videos.Streams.StreamClient.GetManifestAsync(VideoId videoId)
   at AudioChord.Extractors.YouTubeExtractor.ExtractSongAsync(String videoId, TimeSpan maximumDuration)
   at AudioChord.MusicService.DownloadSongAsync(String url, Boolean ignoreCache)
   at Railgun.Music.Scheduler.MusicScheduler.FetchSongAsync(SongId id) in /home/nekoputer/Github/Railgun/Railgun/Music/MusicScheduler.cs:line 225
   --- End of inner exception stack trace ---
   at Railgun.Music.Scheduler.MusicScheduler.RequestNextSongAsync() in /home/nekoputer/Github/Railgun/Railgun/Music/MusicScheduler.cs:line 78
   at Railgun.Music.Player.StartAsync() in /home/nekoputer/Github/Railgun/Railgun/Music/Player.cs:line 148

Is it possible that YT changed something on their side again?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:29 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
Tyrrrzcommented, Nov 28, 2020

I tried to push a backwards-compatible fix for this. Let’s see if it actually works.

2reactions
Isaysocommented, Nov 29, 2020

today I got the error back and the new nuget package fixed it- Thanks a lot!!!

FYI: But, I have some videos now who don’t have a working audio stream. YTExplode get an audio and video stream, but the audio stream is empty (wich also leads to a download error - no data). So probably there is still something going on? Lets wait and see.

FYI2: This video with no audio isn’t playable in vlc at all https://www.youtube.com/watch?v=cJ0WE4JkROA and libreelec can play it correctly.

code for the audio:

var streamInfoA = streamManifest.GetAudio() .Where(s => s.Container == Container.Mp4) .WithHighestBitrate();

Read more comments on GitHub >

github_iconTop Results From Across the Web

0xE2 is an invalid start of a property name - json
Turns out this error was from parsing a json based configuration file of the validator, not the results from validating a HAL response ......
Read more >
System.Text.Json.JsonException 'is an invalid start of a ...
Issue resolution for System.Text.Json usage gives JsonException "System.Text.Json.JsonException: '''' is an invalid start of a property name.
Read more >
Troubleshooting
Json.JsonReaderException: '0xC2' is an invalid start of a property name. Expected a '"'. LineNumber: 7 | BytePositionInLine: 0.
Read more >
How to allow some kinds of invalid JSON with System.Text. ...
Learn how to allow comments, trailing commas, and quoted numbers while serializing to and deserializing from JSON in .NET.
Read more >
Debugging System.FormatException in ASP.NET Core
JsonReaderException : The input does not contain any JSON tokens. ... JsonReaderException: 'd' is an invalid start of a property name.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found