-
Notifications
You must be signed in to change notification settings - Fork 199
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
Contributors section gets stuck with a spinner, no images #456
Comments
The rate limiting is also observed on the local environment which makes it hard to test the website in the first place. @jywarren I think we should start with investigating the number of requests that are being made per page refresh and look for the possible optimisations. |
We've unfortunately discussed the idea of a token before, and we really want this to be able to run purely client-side. What we could do is think of a way to add a token for developer usage, to make debugging easier. But we can also start with (3) above and just display an appropriate message when we get such an error back, which would do a lot to make the issue more transparent to the user. Then we could go back in and see what's going wrong and try to add an "onFail" fallback to display the prior cached data. |
Hi, @jywarren How are you? |
Thank you, that would be wonderful!
…On Wed, Jun 9, 2021, 6:19 PM Yogesh Sharma ***@***.***> wrote:
Hi, @jywarren <https://github.com/jywarren> How are you?
I would like to work on this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#456 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J3JNLJB4MZJ5VOYCOTTR7SIPANCNFSM43GAJLPA>
.
|
Hi @jywarren and @TildaDares can I also assist with this? |
@prius2055 we'd love help with it. Would you like any help getting started? |
Please describe the problem (or idea)
Sometimes (esp after reloading the page a few times) we get just a spinner for this section:
The JS console shows we've gone over our API limit:
https://code.publiclab.org/#r=all
Analysis
I bet we have some data already cached and we're just hitting an error on trying to fetch new data. We could try logging out what contributors we /already/ have to test this out.
Solution
Let's try to fall back on the existing set of saved contributors if the new requests fail.
You've hit GitHub's API rate limit for fetching new data. Old data shown instead; try again in 5-10 minutes!
Any help appreciated!!!
The text was updated successfully, but these errors were encountered: