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

HTTPError #11

Closed
haofanwang opened this issue Jan 27, 2021 · 3 comments
Closed

HTTPError #11

haofanwang opened this issue Jan 27, 2021 · 3 comments

Comments

@haofanwang
Copy link

haofanwang commented Jan 27, 2021

I meet HTTPError: HTTP Error 502: Bad Gateway in display_photo(photo_id)

@haltakov
Copy link
Owner

The problem seems to come from hitting the Unsplash API limits... :( It seems that too many people are trying to run the notebook at the same time. I'm caching as much as possible, but it seems that it is not enough.

I'm looking into how this can be solved, but in the meantime you can try again just after a new hour starts and the limits are reset.

@haofanwang
Copy link
Author

Great work! A suggestion is that we can directly download the image based on photo id.

@haltakov
Copy link
Owner

Great work! A suggestion is that we can directly download the image based on photo id.

This is not really allowed by Unsplash. I know that it is possible, but the right way is to go through the API. I now applied for production status, which should solve the problem.

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

No branches or pull requests

2 participants