Youtubeexplode: Value cannot be null. Parameter name: value

Created on 8 Jul 2019  路  10Comments  路  Source: Tyrrrz/YoutubeExplode

Value cannot be null.
Parameter name: value

error today

bug caused by youtube

Most helpful comment

Will look into it tomorrow

All 10 comments

same error
worked just fine until now

Same here!
Full error details:

System.ArgumentNullException: Value cannot be null. Parameter name: value at Newtonsoft.Json.Linq.Extensions.ValueT,U at YoutubeExplode.YoutubeClient.d__39.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at YoutubeExplode.YoutubeClient.d__43.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 VB.VB$StateMachine_1_GetVideoStream.MoveNext()

This line is throwing the error:
sts = playerConfigJson.SelectToken("sts").Value();

the config json no longer contains "sts",and it fails

They have made changes to thair Json output structure.

From sts to args and then cvr

the assets.js is also changed to assets then js

Made those changes and everythings working now :)

it works for me when change the sts
sts = playerConfigJson.SelectToken("args.cver").Value();

same error value can not be null when try to get video stream

Will look into it tomorrow

Is this bug the cause of this problem?

Is this bug the cause of this problem?

Yes.

Fix should be on nuget soon

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ShaiPreter picture ShaiPreter  路  3Comments

nk34player picture nk34player  路  4Comments

PhapHanh picture PhapHanh  路  4Comments

alexrainman picture alexrainman  路  5Comments

jungjanos picture jungjanos  路  6Comments