fzaninotto/Faker

Lorem Pixel SSL error

Closed this issue · 5 comments

The Image provider uses Lorem Pixel with the domain https://lorempixel.com/, it would seem that the SSL for that site is invalid.

So, when you call the method it just returns false

Would it be better to update the URL or use a different provider?

And it seems down now.

And it seems down now.

Yes, It's down.

The error is due to the https url getting forwarded to HTTP.

Faker URL Generated:
https://lorempixel.com/900/600/city?20118

Loem pixel do support HTTPS images however it is in the following format:
https://lorempixel.com/900/600/city/?20118

Note the '/' after the category. This needs to be added to:
https://github.com/Marak/faker.js/blob/master/lib/image_providers/lorempixel.js#L45

The idea is to remove the image generation complete from the Faker core and to work with a provider here. So i will close this issue for now since the existing cert is valid again.