Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube daily query quota is too low #1297

Closed
harrisonlingren opened this issue Jan 4, 2020 · 5 comments
Closed

YouTube daily query quota is too low #1297

harrisonlingren opened this issue Jan 4, 2020 · 5 comments

Comments

@harrisonlingren
Copy link

@harrisonlingren harrisonlingren commented Jan 4, 2020

Organizr Version: V 2.0.325
Branch: v2-master
WebServer: nginx/1.16.1
Operating System: Ubuntu/Docker

Problem Description:

YouTube daily query quota exceeded, so clicking the YouTube icon on a media panel fails with HTTP code 403.


Reproduction Steps:
  1. Open / log in to Organizr on desktop/web
  2. Click a "Recently Added" media item
  3. Click the YouTube icon

Expected: YouTube opens with search

Result: Nothing happens when YouTube icon is clicked


Errors on screen? If so paste here:

Chrome client console log:

jquery-2.2.4.min.js:4 GET https://www.googleapis.com/youtube/v3/search?part=snippet&q=My%20Hero%20Academia%202016%20movie+official+trailer&part=snippet&maxResults=1&type=video&videoDuration=short&key=AIzaSyD-8SHutB60GCcSM8q_Fle38rJUV7ujd8k 403
send @ jquery-2.2.4.min.js:4
ajax @ jquery-2.2.4.min.js:4
youtubeSearch @ functions.js?v=cdc55ce8958fe5f146b809a7fe4993a6b4147609:6423
youtubeCheck @ functions.js?v=cdc55ce8958fe5f146b809a7fe4993a6b4147609:6428
onclick @ (index):1
functions.js?v=cdc55ce8958fe5f146b809a7fe4993a6b4147609:6439 Organizr Function: YouTube Connection Failed
(anonymous) @ functions.js?v=cdc55ce8958fe5f146b809a7fe4993a6b4147609:6439
i @ jquery-2.2.4.min.js:2
fireWith @ jquery-2.2.4.min.js:2
z @ jquery-2.2.4.min.js:4
(anonymous) @ jquery-2.2.4.min.js:4
load (async)
send @ jquery-2.2.4.min.js:4
ajax @ jquery-2.2.4.min.js:4
youtubeSearch @ functions.js?v=cdc55ce8958fe5f146b809a7fe4993a6b4147609:6423
youtubeCheck @ functions.js?v=cdc55ce8958fe5f146b809a7fe4993a6b4147609:6428
onclick @ (index):1
jquery-2.2.4.min.js:4 XHR failed loading: GET "https://www.googleapis.com/youtube/v3/search?part=snippet&q=My%20Hero%20Academia%202016%20movie+official+trailer&part=snippet&maxResults=1&type=video&videoDuration=short&key=AIzaSyD-8SHutB60GCcSM8q_Fle38rJUV7ujd8k".
send @ jquery-2.2.4.min.js:4
ajax @ jquery-2.2.4.min.js:4
youtubeSearch @ functions.js?v=cdc55ce8958fe5f146b809a7fe4993a6b4147609:6423
youtubeCheck @ functions.js?v=cdc55ce8958fe5f146b809a7fe4993a6b4147609:6428
onclick @ (index):1

JSON response from googleapis.com:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceeded",
    "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=650259591802",
    "extendedHelp": "https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=650259591802"
   }
  ],
  "code": 403,
  "message": "Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=650259591802"
 }
}
@causefx

This comment has been minimized.

Copy link
Owner

@causefx causefx commented Jan 4, 2020

hmmm, i will have to take a look at this.

@causefx

This comment has been minimized.

Copy link
Owner

@causefx causefx commented Jan 6, 2020

image
I have submitted a request to YT to get our quota increased.

image

It seems we are hitting or almost hitting the cap daily.

@causefx

This comment has been minimized.

Copy link
Owner

@causefx causefx commented Jan 6, 2020

Side note - if we get denied - I will add a field for the user to enter their own key.

@causefx

This comment has been minimized.

Copy link
Owner

@causefx causefx commented Jan 7, 2020

Hello,

Your quota extension request has been rejected based on the information you provided due to the following reason:

The project number provided is invalid. To find the project number associated with your YouTube API Client, follow the steps provided here
Do not reply to this email, you may complete and submit this form to re-apply once the above concern have been addressed.

Regards,
YouTube API Services Team

Apparently I had the wrong project number listed - resubmitting now.

@causefx

This comment has been minimized.

Copy link
Owner

@causefx causefx commented Jan 13, 2020

...........and we got denied by those assholes. oh well.... fix incoming along with multiple keys for other users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.