GithubHelp home page GithubHelp logo

Comments (5)

iparamonau avatar iparamonau commented on June 28, 2024 1

Good point about IPv6, we'll need to do some experiments. For now, let's leave the issue open - we'll swap the test URL there, and then resolve it ourselves.

Thanks for reporting!

from iframely.

iparamonau avatar iparamonau commented on June 28, 2024

Is it just for that test BBC URL or for others too? Also, what do you get if you cURL that URL with our user-agent. Also, what UA string do you? The default one?

from iframely.

j0k3r avatar j0k3r commented on June 28, 2024

Ok maybe I wasn't clear enough.
All tests are green on Node 16.
If I switch to Node 18, 403 appears, no matter the website.
Everything is at default, the repo is clean and up to date.

$ nvm use 16
Now using node v16.18.1 (npm v9.6.0)

$ yarn test-core-plugins
yarn run v1.22.19
$ mocha --exit test/core-plugins.js
Using cache engine: node-cache
No local domains file detected...
-- [23-03-17 08:40:18]:8999 Loading domains list from https://iframely.com/qa/domains.json
Invalid mixin "ld-newsarticle-logo" in plugin "sverigesradio.se"
Invalid mixin "ld-author" in plugin "sverigesradio.se"
Invalid mixin "ld-date" in plugin "sverigesradio.se"
Iframely plugins loaded:
   - custom domains: 140
   - generic & meta: 95


  Core plugins
    meta
-- [23-03-17 08:40:18]:8999 Domains list activated. 1915 domains, including disabled ones
-- [23-03-17 08:40:18]:8999    -- plugin redirect (by "htmlparser") https://www.bbc.com/news/science-environment-23767323
-- [23-03-17 08:40:18]:8999    -- plugin redirect (by "htmlparser") https://www.bbc.com/news/av/science-environment-23767323
      ✔ not error
      ✔ has meta
    oembed
-- [23-03-17 08:40:19]:8999    -- plugin redirect (by "htmlparser") https://www.ted.com/talks/kent_larson_brilliant_designs_to_fit_more_people_in_every_city
      ✔ not error
      ✔ has valid oEmbed object
    image size
      ✔ has correct size and type (40ms)


  5 passing (381ms)

✨  Done in 1.44s.

$ nvm use 18
Now using node v18.15.0 (npm v9.5.0)

$ yarn test-core-plugins
yarn run v1.22.19
$ mocha --exit test/core-plugins.js
Using cache engine: node-cache
No local domains file detected...
-- [23-03-17 08:40:27]:9197 Loading domains list from https://iframely.com/qa/domains.json
Invalid mixin "ld-newsarticle-logo" in plugin "sverigesradio.se"
Invalid mixin "ld-author" in plugin "sverigesradio.se"
Invalid mixin "ld-date" in plugin "sverigesradio.se"
Iframely plugins loaded:
   - custom domains: 140
   - generic & meta: 95


  Core plugins
    meta
-- [23-03-17 08:40:28]:9197    -- plugin redirect (by "htmlparser") https://www.bbc.com/news/science-environment-23767323
-- [23-03-17 08:40:28]:9197 Domains list activated. 1915 domains, including disabled ones
-- [23-03-17 08:40:28]:9197    -- plugin response: {"plugin":"htmlparser","response":403,"uri":"https://www.bbc.com/news/science-environment-23767323"}
      1) not error
      2) has meta
    oembed
-- [23-03-17 08:40:28]:9197    -- plugin redirect (by "htmlparser") https://www.ted.com/talks/kent_larson_brilliant_designs_to_fit_more_people_in_every_city
      ✔ not error
      ✔ has valid oEmbed object
    image size
      ✔ has correct size and type (48ms)


  3 passing (464ms)
  2 failing

  1) Core plugins
       meta
         not error:
     AssertionError: expected 403 to equal null
      at Context.<anonymous> (file:///Users/jeremy/Sites/github/iframely/test/core-plugins.js:64:20)
      at process.processImmediate (node:internal/timers:476:21)

  2) Core plugins
       meta
         has meta:
     AssertionError: Target cannot be null or undefined.
      at Context.<anonymous> (file:///Users/jeremy/Sites/github/iframely/test/core-plugins.js:71:20)
      at process.processImmediate (node:internal/timers:476:21)



error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

from iframely.

iparamonau avatar iparamonau commented on June 28, 2024

Thank you, I can confirm the 403 on that test URL from BBC using Node 18.

However,

403 appears, no matter the website.

Every other URL seems to be working fine and as expected. Can you please confirm that you get 403 across the board, for all the URLs you try?

from iframely.

j0k3r avatar j0k3r commented on June 28, 2024

Well, BBC doesn't work for sure but can't find an other one that is failing and can't recall which one was failing from that morning.

So I guess I can close the issue as it seems to be only related to BBC?
Can this be related to the fact that since Node 17 IPv6 is preferred over IPv4?

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.