Comments (5)
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.
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.
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.
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.
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)
- Spotify Video podcast do not have the right aspect ratio HOT 1
- Missing attributes for Spotify embeds HOT 2
- Batch querying by content IDs does not work HOT 1
- Facebook public posts redirect to facebook.com/login HOT 4
- Intermittent issues with Google share links HOT 4
- Inspect Network Calls HOT 1
- AWS cli for pushing build image
- New Tumblr embeds HOT 2
- Issue with a long html page without javascripts. HOT 2
- remove racially loaded terms from the website HOT 1
- Better aspect ratio for Loom embeds HOT 1
- Tweet with media are failing in self hosted version HOT 3
- Tweet with media are failing in self hosted version HOT 1
- Tweet with media are failing in self hosted version HOT 1
- Self-hosted, instagram embed, redirect loop. HOT 9
- cannot parse medium article HOT 1
- Release Schedule HOT 2
- Allow setting configuration file path via environment variable HOT 1
- Figma app link missing in self-hosted version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iframely.