Prefer a stable CDN over IPFS #2934
Labels
c: bug
Something isn't working
has workaround
Workaround provided or linked
m: image
Something is referring to the image module
p: 1-normal
Nothing urgent
s: pending triage
Pending Triage
Pre-Checks
Describe the bug
I am using
faker.image.avatar()
method to get a random avatar URL.The method returns a random IPFS URL:
https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/269.jpg
But to my surprise, the Cloudflare IPFS Gateway returns 504 error:
The IPFS gateway itself is working, but the asset can not be fetched by the gateway from the IPFS network.
Minimal reproduction code
No response
Additional Context
IMHO IPFS Gateway might not be that stable after all,
faker-js
could publish the random assets on a dedicated GitHub repo and use jsDelivr (or any other CDN) to deliver them.Environment Info
System: OS: Linux 6.8 Fedora Linux 40 (Workstation Edition) CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 11.70 GB / 31.03 GB Container: Yes Shell: 5.9 - /usr/bin/zsh Binaries: Node: 18.19.0 - /run/user/1000/fnm_multishells/174660_1717401217872/bin/node npm: 10.2.3 - /run/user/1000/fnm_multishells/174660_1717401217872/bin/npm pnpm: 8.15.8 - /run/user/1000/fnm_multishells/174660_1717401217872/bin/pnpm bun: 1.1.10 - ~/.npm-global/bin/bun Browsers: Chrome: 125.0.6422.141
Which module system do you use?
Used Package Manager
pnpm
The text was updated successfully, but these errors were encountered: