weespin / RequestifyTF2

Client side commands for mic spamming and more!
MIT License
16 stars 4 forks source link

Request function doesn't work, tts and everything else works fine. #51

Closed MasterTarcus closed 2 years ago

MasterTarcus commented 3 years ago

The request function does not work and returns this error in the log:

System.AggregateException: One or more errors occurred. ---> System.Text.Json.JsonReaderException: 'a' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1. at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan1 utf8JsonSpan, Utf8JsonReader reader, MetadataDb& database, StackRowStack& stack) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedBytes) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 json, JsonDocumentOptions options) at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) at YoutubeExplode.Internal.Json.Parse(String source) at YoutubeExplode.Internal.Extensions.GenericExtensions.Pipe[TIn,TOut](TIn input, Func2 transform) at YoutubeExplode.ReverseEngineering.Responses.WatchPage.TryGetPlayerConfig() at YoutubeExplode.Videos.Streams.StreamClient.d4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at YoutubeExplode.Videos.Streams.StreamClient.d6.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task1.get_Result() at RequestPlugin.VoteCommand.RequestCommand.Execute(User executor, List1 arguments) at RequestifyTF2.Commands.Executer.<>c__DisplayClass0_0.<Execute>b__0() in C:\projects\requestifytf2\src\Core\RequestifyTF2\Commands\Executer.cs:line 80 ---> (Inner Exception #0) System.Text.Json.JsonReaderException: 'a' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1. at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan1 utf8JsonSpan, Utf8JsonReader reader, MetadataDb& database, StackRowStack& stack) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedBytes) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 json, JsonDocumentOptions options) at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) at YoutubeExplode.Internal.Json.Parse(String source) at YoutubeExplode.Internal.Extensions.GenericExtensions.Pipe[TIn,TOut](TIn input, Func`2 transform) at YoutubeExplode.ReverseEngineering.Responses.WatchPage.TryGetPlayerConfig() at YoutubeExplode.Videos.Streams.StreamClient.d4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at YoutubeExplode.Videos.Streams.StreamClient.d6.MoveNext()<---

I have tested it on both my laptop and desktop, so I don't think it has anything to do with any computer setting. Was able to get previous versions to work just fine, but now old versions return with errors suggesting that there's an error on YouTube's end, and is probably not a code bug, and to wait and try again, but this message keeps returning everytime I try and use the request command.

weespin commented 2 years ago

Fixed in https://github.com/weespin/RequestifyTF2/commit/186ea6bf8a673a16fb22077f0c10640abf846656