GithubHelp home page GithubHelp logo

Youtube embeds are failing about iframely HOT 3 CLOSED

itteco avatar itteco commented on July 23, 2024
Youtube embeds are failing

from iframely.

Comments (3)

nleush avatar nleush commented on July 23, 2024

Hi.

Did you configured youtube api_key? See: https://github.com/itteco/iframely/blob/master/config.local.js.SAMPLE#L137

How many requests do you send? Can you show server console log from start to request end ('pm2 logs').

BTW: 429 Means "Too Many Requests"

from iframely.

nleush avatar nleush commented on July 23, 2024

Alternatively you can test iframely cluster.js app. It works same as pm2 -i 0

pm2 start cluster.js

from iframely.

iparamonau avatar iparamonau commented on July 23, 2024

With 4 threads and about 150 ms per YouTube video you can easily create 25 reqs/second for YouTube APIs. Not sure what their limit is, but guess that would be close. So you need to revise how you use the API, for example make sure the caching engine is configured properly.

From our side (see commit):

  • Just removed dependency on oEmbed, which should eliminate 2nd API call per URL
  • Implemented a fallback to generic parsers on 429 error, perhaps you'll get any luck with plain HTML/Twitter cards/OG parser if the error occurs

from iframely.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.