Open SukkaW opened 3 weeks ago
See also #2598.
Which version of Faker are you using?
The link seems to work fine for me, this might be a temporary problem. We plan to replace the legacy set in the future.
Workaround: Use avatarGithub()
instead.
Which version of Faker are you using?
I am using @faker-js/faker@7.6.0
The link seems to work fine for me, this might be a temporary problem. We plan to replace the legacy set in the future.
Sure. In the meantime, I propose faker could publish assets on a dedicated GitHub repo, and deliver them through a more stable GitHub CDN like jsDelivr
or Statically.io
, unlike the IPFS which requires maintaining an infra to pin the file over the IPFS network (Like seeding with the BitTorrent).
As I already raised the idea of generating new person face images via Stable Diffusion and I do have now a good graphic card available, I will assign me to this issue However I will also either add a note for the upcoming team meeting about this topic or we (team/part of team) might discuss a bit about the process and how to effectively store these generated data (e.g. also persisting info/meta about how the images were generated and their prompts)
Related issue:
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
Which module system do you use?
Used Package Manager
pnpm