Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't download any of the images from faker.internet.avatar #2598

Closed
9 of 10 tasks
LucaPaterlini opened this issue Jan 9, 2024 · 8 comments
Closed
9 of 10 tasks

Can't download any of the images from faker.internet.avatar #2598

LucaPaterlini opened this issue Jan 9, 2024 · 8 comments
Labels
c: bug Something isn't working s: pending triage Pending Triage

Comments

@LucaPaterlini
Copy link

Pre-Checks

Describe the bug

Hello,
it seems none of the faker.internet.avatar are getting downloaded as per the image.
Screenshot 2024-01-09 at 10 08 48

Minimal reproduction code

https://github.com/LucaPaterlini/SampleFaker/tree/main its a simple repo
the component that use the faker is
this one https://github.com/LucaPaterlini/SampleFaker/blob/main/src/components/RenderPropsFaker.tsx

Additional Context

No response

Environment Info

System:
    OS: macOS 14.2.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 14.29 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.5.0 - /usr/local/bin/node
    npm: 10.2.4 - /usr/local/bin/npm
    bun: 1.0.11 - /usr/local/bin/bun
  Browsers:
    Chrome: 120.0.6099.199
    Edge: 113.0.1774.35
    Safari: 17.2.1

Which module system do you use?

  • CJS
  • ESM

Used Package Manager

npm

@LucaPaterlini LucaPaterlini added c: bug Something isn't working s: pending triage Pending Triage labels Jan 9, 2024
@LucaPaterlini
Copy link
Author

sandbox example

@ST-DDT
Copy link
Member

ST-DDT commented Jan 9, 2024

sandbox example

Works for me (Tested in Firefox and Chrome).

grafik

Could you please include the error message that you are getting?

@LucaPaterlini
Copy link
Author

LucaPaterlini commented Jan 9, 2024

Hello and thanks for your kind reply,
maybe there is a restriction on downloading images from Italy 🤔

https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/28.jpg

^^ to reduce the issue even more the browser its not able to download the images from Cloudflare [ from Italy]

As per the previous image.

Connection timeout on images download

Screenshot 2024-01-09 at 11 01 48

@xDivisionByZerox
Copy link
Member

Works for me as well. Although, my company's network blocked the request. Might be a firewall problem on your side?

@ST-DDT
Copy link
Member

ST-DDT commented Jan 9, 2024

Try using faker.image.avatar() instead.

@LucaPaterlini
Copy link
Author

Screenshot 2024-01-09 at 11 24 59

with faker.image.avatar a portion of them (like around 20) loads while the others go timeout

@ST-DDT
Copy link
Member

ST-DDT commented Jan 9, 2024

Then maybe just use faker.image.avatarGitHub that does not contain the ipfs set.

@LucaPaterlini
Copy link
Author

Yes it works with avatarGithub,
Thanks for the reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: bug Something isn't working s: pending triage Pending Triage
Projects
None yet
Development

No branches or pull requests

3 participants