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

Staticman error while post request "Too many requests in this time frame." #60

Open
tichter opened this issue Jul 31, 2018 · 5 comments

Comments

@tichter
Copy link

tichter commented Jul 31, 2018

Hi,

I cloned the repository and set up a custom page on github pages with it. After distributing the link, some people encountered an error after clicking on submit in the end of the task. The error message said:

{"error":{"text":"Too many requests in this time frame.","nextValidRequestDate":"2018-07-31T14:01:50.841Z"}}

I then tried it myself, did the task on the website and everything worked fine. During the same time this error persisted for the other people. While a few minutes later everything worked fine for everyone.

Do you know where this error comes from? Or what I can do in order to prevent this bug from happening again?
I have already looked online/on github for similar errors but I haven't found any hints or answers.

Thank you in advance for your help!

@deeuu
Copy link
Owner

deeuu commented Aug 5, 2018

Hey,
Hmm I'm not sure about this one! And you've setup Staticman correctly (you're able to receive pull requests)?

Can you send me the link to try myself?

Thanks

@tichter
Copy link
Author

tichter commented Aug 5, 2018

Thank you for your answer.

Yes, I have Staticman setup in the right way. The thing is, that the error doesn't always occur. On Friday, I presented the page and it happened during the presentation. I reloaded the page, did the small task again and then it worked fine and I received the pull request as usual.

Here the link to the page:
https://tichter.github.io/pwlisten/
When your get to the second page, enter either "test1" or "test2" (without the "") in order to access the different tasks.

Thank you for your help!

@deeuu
Copy link
Owner

deeuu commented Aug 5, 2018

Okay leave it with me...I'll take a look later.

@deeuu
Copy link
Owner

deeuu commented Aug 5, 2018

@tichter Submission worked for me too (I've commented on the pull-request so you can delete it).
Are you able to reproduce the issue at all?

The error suggests you had a sudden surge of posts, might this be the case?

Do you have the full error log or is that it?

I'd be interested in knowing more

@tichter
Copy link
Author

tichter commented Aug 6, 2018

First of all, thank you for your time.

I tested posting a request a couple of times now and I found two things. First of all, when I click on submit the first time everything works fine and I get redirected the the page where I get the return code. When I then press the back button of the browser, I get to the last page of the experiment with the submit popup open. When I then again on the submit button this error occurs again.
This might be an issue, because the same request gets posted two times?

Secondly, when I open multiple tabs and submit with roughly 10s difference, this error also occurs. But after reloading the page with Ctrl+F5, the submit works properly.

Could it be that it has to do with cached data of the browser? Or is there a time limit on post requests of Staticman? Or is there a limit of pull requests to a git repository when you don't pay for the account?

I attached a screenshot of the full error log below. You can get to this yourself by doing the task, submitting (should work fine), when you are on the return code page clicking on the back arrow of the browser (now you should see the submit popup with the loading animation), and finally click again on submit.

staticmanerror

PS: This site is still under development, before I will use it to collect real data, I will delete all previous pull requests, so you can try the submit button as often as you want/need in order to further investigate this error. And, "Test2" only contains two tasks, this might be a faster way to get to the submit button :)

Thank you for your help!

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