-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
TypeError: Second argument to Function.prototype.apply must be an array. (ligne 45, fichier "Code") #23
Comments
Just making sure if you did this already: |
Yes, I have already activated "YouTube Data API v3" on https://console.cloud.google.com |
I've been getting the same error since a few days ago. Did you find a fix? |
No. But maybe this means that something about the YouTube API changed, if
we both suddenly get it.
…On Sun, 17 Mar 2019, 18:07 Andreas Wahlqvist, ***@***.***> wrote:
I've been getting the same error since a few days ago. Did you find a fix?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJ_vYkcrE74Cl5Yk1GJmzdY-VyeZPcQvks5vXnZXgaJpZM4SMXxD>
.
|
At least nothing official:
https://developers.google.com/youtube/v3/revision_history
…On Sun, 17 Mar 2019, 20:22 FaRo Musik, ***@***.***> wrote:
No. But maybe this means that something about the YouTube API changed, if
we both suddenly get it.
On Sun, 17 Mar 2019, 18:07 Andreas Wahlqvist, ***@***.***>
wrote:
> I've been getting the same error since a few days ago. Did you find a fix?
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#23 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AJ_vYkcrE74Cl5Yk1GJmzdY-VyeZPcQvks5vXnZXgaJpZM4SMXxD>
> .
>
|
Actually, I only get this error when using the |
Oh, I didn't notice what report I was commenting on: Yes, I also got this error and it went away when I replaced "all" with the individual channel IDs, then it gave this "property of undefined" error instead. So, @deepfriedmind, yes, I found a potential workaround, maybe it works for you. |
Like I said, if I just input a playlist ID and a channel ID, it finishes without errors but doesn't actually add any videos. I guess it's the same issue as #26. |
I looked in the log and noticed |
Still no fix for this? Has the YouTube API changed or something? |
Stuff from Mar 17th is due to YT taking their search down. This should be fixed now so this should no longer pose as an issue. For the first error mentioned above, seems like that code is outdated. Is the issue still there? @Flavien06 |
I get this error as well, and it only happens when i use "ALL" keyword. I also don't get any videos added when i put a channel or playlist id instead of "ALL." |
Hi @Capacino, thanks for your input. I'm not too sure why you're still getting this issue, as I can still use the script with no problems. First off, make sure you've done this To help you debug the program, can you please replace the script in your sheet with this one on my new branch, which has a better error checking and handling. If you don't know how to access the script, on your Google Sheet, go to Tools -> Script Editor. Then, run the function through the Sheets UI as normal, and once it finishes, look at the Debug sheet that will be generated. |
@dudemario, so when i input your updated script, the error with "ALL" keyword stopped. The first time i ran the script it added some of the videos and seemed like it works. But when i ran it a couple of hours later it gave this error in the logs: https://imgur.com/a/1kb6LyR |
How many subs do you have? Can you try going back in history to see if the debug sheet had an "Acquired subscriptions (number of subs)" that equals the number you have? In fact, you might have more errors in the debug sheet from before that might expose other bugs, so if you can take a look that'd be great. If you don't have that many channels, can you change line 10 to be |
So i have over 76 on the current youtube account i'm using. When the script ran it did say that it acquired all 76 subscriptions. Then after that it always puts the over quota error. Does the script have a limit to how many videos and/or subscribers it can pull from? |
How many quota errors do you see? I'll do some testing. If there aren't that many videos it shouldn't pass the quota that fast. |
I copied the new log script too. Worked real good first time. Then only returns empty. When I turn the debug flag on, no channel has new video, regardless whether they do or not. (Played around with timestamps too to no avail) |
So I've been messing around with the number of channels i could get videos from. And currently it's best to avoid using the ALL keyword if you have more than 50+ channels as it takes up too many of the api calls maxing out your quota for the day. Just copying the channel IDs your subbed to is much less calls to the api. The upper limit of what I've tested is 75 channels at 1 previous day timestamp. Other than that, the script works perfectly. |
@JesperDramsch and others, the script is working perfectly due to YouTube's API being a bit broken as mentioned in this issue, which can be tested using their API explorer page. (This especially affects vids released within the last 24h). I'll see what I can fix in the meantime, but if vids are not getting added, this might be the cause |
As mentioned in #41 YouTube's API has pretty much been fixed, so the script should be working fine now. @JesperDramsch can you check if you're still encountering the same issue? Pushed a new set of changes to the debug branch (even more logging) so try using this new version. |
Works again as also mentioned in #41. I'll check out the debug branch |
@dudemario Checked it out. I like it, except for the proposed change in #45 |
@Capacino Do you still have quota error? If you go to the link that the quota error provides, what's your quota limit? |
@dudemario No i don't get the quota error anymore. I just split my 400+ subscriptions across 6 google accounts and it works perfectly. I think more than 100 subscribers makes you hit the quota easily. |
I have 150 subscriptions, but they're not daily vloggers. |
Closing this after implementing changes to script. |
Hi
I use the script for some days
It worked for the first few days and without changing anything I have the following error:
The text was updated successfully, but these errors were encountered: