-
Notifications
You must be signed in to change notification settings - Fork 9
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
Too many youtube requests leads to bot suspicion. #12
Comments
Thanks for passing that on! We have worked really hard to keep making true oembed queries to youtube, and we do cache the results rather than hitting them every time, so it is a little surprising that this happens. If you have any data on the requests that were being made we'd be interested to see it. Perhaps we're not caching failures enough and that's leading to too many retries on bad video links and getting you banned. Or perhaps you just have so many videos that even the once an hour requests to refresh the cache are too many. |
Well, there is one video on average on each page. One page has 10 videos though >< Links were not broken. I did not find anything weird in logs.. Youtube just started sending this response, that basically it. |
OK, thanks. Maybe we're not caching errors or something. Otherwise I don't
see how we'd hit a problematic number of requests. Very strange.
…On Mon, Feb 8, 2021 at 10:24 AM fedoseiev ***@***.***> wrote:
Well, there is one video on average on each page. One page has 10 videos
though ><
Also, we are running 2-6 node containers at same time. I guess it was
only a matter of time...
Links were not broken. I did not find anything weird in logs.. Youtube
just started sending this response, that basically it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAH27JWCAZMF52MXB6A3GLS576Z7ANCNFSM4XGEWT5A>
.
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER
APOSTROPHECMS | apostrophecms.com | he/him/his
|
(The cache is shared across processes.)
…On Mon, Feb 8, 2021 at 11:18 AM Tom Boutell ***@***.***> wrote:
OK, thanks. Maybe we're not caching errors or something. Otherwise I don't
see how we'd hit a problematic number of requests. Very strange.
On Mon, Feb 8, 2021 at 10:24 AM fedoseiev ***@***.***>
wrote:
> Well, there is one video on average on each page. One page has 10 videos
> though ><
> Also, we are running 2-6 node containers at same time. I guess it was
> only a matter of time...
>
> Links were not broken. I did not find anything weird in logs.. Youtube
> just started sending this response, that basically it.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#12 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAAH27JWCAZMF52MXB6A3GLS576Z7ANCNFSM4XGEWT5A>
> .
>
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER
APOSTROPHECMS | apostrophecms.com | he/him/his
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER
APOSTROPHECMS | apostrophecms.com | he/him/his
|
Story:
We have a decent amount of users visiting our website with youtube embedded videos on some pages.
Suddenly all our videos broke up. We have tried to reproduce it in a development(or local) environment - unsuccessfully.
After long production debugging we have found the source of our struggles:
This request to youtube:
oembetter/oembed.js
Line 33 in 5d728fa
Basically what happened, is that youtube suspected our production IP-address at being a bot :D
After all we have ended up with a self made embedded video widget... but wanted to inform you that this problem exists.
The text was updated successfully, but these errors were encountered: