aporat / store-receipt-validator

PHP receipt validator for Apple iTunes, Google Play and Amazon App Store
Apache License 2.0
633 stars 153 forks source link

Google forbidden request #118

Closed blood73 closed 4 years ago

blood73 commented 4 years ago

I checked subscription for Google Play very often, I think. Google banned IP. Now I received this for any request:

Sorry...
Google
Sorry...

We're sorry...

... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.

See Google Help for more information.

Google Home

How I can quick fix thix problem? I need to add proxy server temporarily. Is it possible?

Stafox commented 4 years ago

I see the same situation. More than 150k errors since 14:00 UTC time.

Looks like there is an issue on the google side.

In my case i've used internal cache to reduce amount of requests to API as recommended by google.

I have saw something similar to this a week ago, but it was fixed in a short time.

blood73 commented 4 years ago

In my case i've used internal cache to reduce amount of requests to API as recommended by google.

I found a possibility to add a proxy to request to API and it works for me. Without proxy doesn't work.

File vendor/guzzlehttp/guzzle/src/Client.php public function send(RequestInterface $request, array $options = [])

add this line:

$options[RequestOptions::PROXY] = 'proxy_string';

Stafox commented 4 years ago

For me it looks like API requests have been started to handle by general google firewall (which responsible for filtering google search requests).

In that case proxy will be banned soon.

Stafox commented 4 years ago

Looks like googleapis up