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

Timeout error #1

Closed
1001v opened this issue Nov 17, 2018 · 10 comments
Closed

Timeout error #1

1001v opened this issue Nov 17, 2018 · 10 comments

Comments

@1001v
Copy link

1001v commented Nov 17, 2018

Hello. In my app i make several async uploads simultaneously and try to get a unique token for each of them. The problem is that i get a timeout error in most cases. I just wanted to ask, if this is a normal behavior and we can only have one token at the same time, or this is a throttle from google's servers, or this is a bug. Thank you.

@WipeAir
Copy link
Contributor

WipeAir commented Nov 17, 2018

Hi, I've just tried to reproduce your issue by starting 20 requests simultaneously. It looks like they will be executed sequentially, but at all each of the requests got a response with a valid token.
You may setup a demo project, where you can reproduce it, so I can look into it. But at all I'm assuming it's a limitation from Google.

@1001v
Copy link
Author

1001v commented Nov 18, 2018

Here it is. You probably should press that button a few times, but this works different everytime, sometimes even only 5 request would be enough to get errors. During requests please take a look at network activity. The interesting thing is, that when we get errors, the appropriate requests could be still finished successfully a few seconds later. You can see it on these screenshots:
image
A few moments later...
image
UPD: I think that we get errors then some connection lag happens. You can set Fast 3G network preset to see how it works.

@WipeAir
Copy link
Contributor

WipeAir commented Nov 18, 2018

Ok, I've tried it with your demo project. But all my requests were successfully processed (I've clicked the button ~10x).
But on your screenshots I can see that the origin of the error is the recaptcha script from Google, so I assume it's a limitation from Google (maybe even country dependent).
So maybe you can try to reach out to Google and ask them about this limitation issue.

@WipeAir WipeAir closed this as completed Nov 18, 2018
@1001v
Copy link
Author

1001v commented Nov 19, 2018

@WipeAir just interesting, which browser did you use?

@WipeAir
Copy link
Contributor

WipeAir commented Nov 19, 2018

I've tested it with Chromium version 70, which one did you use?

@1001v
Copy link
Author

1001v commented Nov 19, 2018

@WipeAir i've tested it with some chromium browsers and firefox. The interesting thing is that this issue doesn't appear in firefox at all. I've written a letter to google about it.

@WipeAir
Copy link
Contributor

WipeAir commented Nov 20, 2018

Ok, that's pretty strange. Have you actually tried to reproduce it without this plugin?
Can you keep me informed about the response from Google here?

@1001v
Copy link
Author

1001v commented Nov 20, 2018

@WipeAir Yes, i've reproduced it with no plugins at all. I'll post something here when (i hope) i receive any response from google.

@1001v
Copy link
Author

1001v commented Dec 31, 2018

@WipeAir hello. I didn't received any response from google, but i've noticed, that the problem is gone, at least i can't reproduce it anymore. Maybe they've fixed something silently.

@WipeAir
Copy link
Contributor

WipeAir commented Dec 31, 2018

Hi,
that was actually as expected...
But it's nice to hear, that your problem is solved now :)

WipeAir pushed a commit that referenced this issue Dec 4, 2019
* reject promise on error

* Update ReCaptchaVuePlugin.ts

* linting

* fix logic

* update error message

* remove console error

* simplify promise handling

* fix linting

* Update typescript stuff

* Update loadWaiters definition
WipeAir added a commit that referenced this issue Dec 4, 2019
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