joedawson / youtube

Upload a video to a single YouTube channel with Laravel 5.
MIT License
175 stars 105 forks source link

YouTube upload video API stopped working in Laravel #101

Closed umairm638 closed 1 year ago

umairm638 commented 5 years ago

It was working fine before but now when I try to upload video it through following error:

Failed to start the resumable upload (HTTP 403: usageLimits, Access Not Configured. YouTube Data API has not been used in project 927065889954 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=927065889954 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.)

I've checked on Google Console, YouTube data API is enabled and everything seems to be fine as it was working before. What could be the issue then? Thanks!

$video = Youtube::upload($fullPathToVideo, [
                    'title' => $request->postTitle,
                    'description' => $request->postDescription,
                    'tags' => ['youthmedia', 'news', 'funny', 'information', 'social', 'pranks', 'songs', 'video', 'dance'],
                    'category_id' => 1,
        ]);
        if ($video->getVideoId()) {
            $data['post'] = 'https://www.youtube.com/embed/' . $video->getVideoId();
        }
tvercruysse commented 5 years ago

i just tested. upload still works. Maybe you hit your usage limit ?

umairm638 commented 5 years ago

I don't think so as it's not working from many days. Here is the screenshot of quotas: http://prntscr.com/m8kdkh

joedawson commented 5 years ago

What's happening when you visit https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=927065889954?

malik-umair commented 5 years ago

It redirect me to:

https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=youthmedia-174210

Here is the screenshot: http://prntscr.com/m8tnjy

joedawson commented 5 years ago

Screenshot redirects me to here: https://github.com/JoeDawson/youtube/issues/url

Nevermind, it didn't link correctly from your reply - going to http://prntscr.com/m8tnjy directly works.

joedawson commented 5 years ago

What happens if you re-authenticate your account?

malik-umair commented 5 years ago

It successfully authenticate it and new entry is made in database table.

joedawson commented 5 years ago

In the youtube_access_tokens table?

malik-umair commented 5 years ago

yes in youtube_access_tokens table