joedawson / youtube

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

quotaExceeded - Exception returns error 500 #114

Closed dmsysop closed 4 years ago

dmsysop commented 4 years ago

While testing the package, my shipping quota reached the limit and I ended up receiving this exception in return.

However, when in production, the error returned is a 500 error.

Wouldn't it be possible to try to return this message as a warning on the screen to the user instead of a 500 error?

By the way, congratulations on the package! It is excellent! error-dawson

MACscr commented 4 years ago

Did you get this resolved? I need a better way to handle it in a smoother fashion as well.

joedawson commented 4 years ago

Quota exceeded is being returned from Google, you will need to request a higher quota from them.

MACscr commented 4 years ago

Talking about the exception handling of it...

On May 27, 2020, at 3:49 AM, Joe Dawson notifications@github.com wrote:

 Quota exceeded is being returned from Google, you will need to request a higher quota from them.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

joedawson commented 4 years ago

You can handle it using a simple try catch.

https://www.php.net/manual/en/language.exceptions.php