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

401 Unauthorized when using Faker::LoremFlickr #2738

Closed
heratyian opened this issue Apr 2, 2023 · 3 comments
Closed

401 Unauthorized when using Faker::LoremFlickr #2738

heratyian opened this issue Apr 2, 2023 · 3 comments

Comments

@heratyian
Copy link

Describe the bug

Not able to generate images using LoremFlickr

To Reproduce

Faker::VERSION 3.1.1

Use the reproduction script below to reproduce the issue:

image_url = Faker::LoremFlickr.image(search_terms: %w[food])
io = URI.open(image_url)
=> `open_http': 401 Unauthorized (OpenURI::HTTPError)

Expected behavior

An image io object

Additional context

Seems like https://loremflickr.com/ requires login for all requests at the moment.

@ST-DDT
Copy link

ST-DDT commented Apr 3, 2023

The FakerJS community also detected this, so I drop a link here in case somebody finds some information what is going on:

@heratyian
Copy link
Author

Seems like this is resolved now. loremflickr must have been temporarily down.

@thdaraujo
Copy link
Contributor

thanks for letting us know! @heratyian @ST-DDT !

We've been thinking about removing some generators that call external services in the issue below and we've recently deprecated another image generator that relied on an external service:
#2689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants