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.

`is unauthorized` for `http://www.youtube.com/oembed?url={}&format=json` url

See original GitHub issue

Bug report

Checklist

  • I have searched for similar bugs in the issues.
  • I will add the bug label to this issue.

Version Info

  • Ytmdl version: 2020.11.20-1
  • Youtube-dl version: 2020.12.12

How Ytmdl was installed?

pip

Description

At some moment all videos began to give me “is unauthorized” error. Digging into what causes it, I found that in scan_video function http reqest receives message SSL is required to perform this operation. when trying to access http://www.youtube.com/oembed?url={}&format=json. Changing http to https in the link fixed this issue for me.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
deepjyoti30commented, Jan 13, 2021

Added in 2021.1.14.

0reactions
DocMAXcommented, Feb 3, 2022

I have similar(?) issue:

 ==> https://www.youtube.com/watch?v=C7-kAfQkZ9A: is unauthorized 
Traceback (most recent call last):
  File "/usr/bin/ytmdl", line 562, in <module>
    extract_data()
  File "/usr/bin/ytmdl", line 555, in extract_data
    main(args)
  File "/usr/bin/ytmdl", line 264, in main
    link, yt_title = search(song_name=song_name, args=args)
TypeError: cannot unpack non-iterable NoneType object

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP status and error codes for JSON | Cloud Storage
Error Response Format ; code, An HTTP status code value, without the textual description. Example values include: 400 (Bad Request), 401 (Unauthorized), and...
Read more >
Youtube oEmbed without www prefix shows "403 Forbidden ...
If it returns a 401 unauthorized then that means the video you are trying to embed does not allow embedding. That's badly handled,...
Read more >
Error "401 Unauthorized" to upload video in my youtube ...
I'm trying to upload video in my youtube account with Simple Access API (API Key). I'm getting this exception. ... What is wrong?...
Read more >
YouTube Data API - Errors | Google Developers
This document identifies the different types of errors that YouTube Data API operations can return. You can also find a list of errors...
Read more >
Forbidden (403), Unauthorized (401), or What Else? - Auth0
Assume your Web API is protected and a client attempts to access it without the appropriate credentials. How do you deal with this...
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