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.

"The given key was not present in the dictionary" When trying to download a video

See original GitHub issue
var videoId = "U4hMQtcKfQo";
var video = await client.GetVideoAsync(videoId);

Throws

The given key was not present in the dictionary
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at YoutubeExplode.YoutubeClient.<GetVideoAsync>d__45.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`1.GetResult()

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Tyrrrzcommented, Apr 16, 2019

@patrux do you have the same issue? 😃

1reaction
patruxcommented, Apr 16, 2019

wisdom_of_the_ancients

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: The given key was not present in the dictionary
It does occur after the Windows update, I have done some research and it seems like this is due to the Windows update...
Read more >
The given key was not present in the dictionary.
During an excel operation I am getting the following error: "Exception : Error while exporting to PDF. Details: The given key was not...
Read more >
The given Key was not present in the dictionary
Describes an issue that occurs when you run the Group Policy Modeling Wizard against a new Group Policy setting.
Read more >
the given key is not present in the dictionary, Visual Studio 2019
This error results when you try adding images to the drawable folder in Xamarin black project. How to fix the error: the given...
Read more >
The given key was not present in the dictionary. Which key?
The given key was not present in the dictionary. A better way would be: The given key '" + key. ToString() + "'...
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