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 #53

Closed
dann95 opened this issue Nov 2, 2016 · 11 comments
Closed

Timeout #53

dann95 opened this issue Nov 2, 2016 · 11 comments

Comments

@dann95
Copy link
Contributor

dann95 commented Nov 2, 2016

Hi there, since yesterday it stoped working making the following error:

file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: Connection timed out

running on terminal the following commands i have the results:

php -r "echo file_get_contents('https://www.google.com/recaptcha/api/siteverify');"

Results on:

PHP Warning:  file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: Connection timed out in Command line code on line 1

while, running:

curl https://www.google.com/recaptcha/api/siteverify
{
  "success": false,
  "error-codes": [
    "missing-input-response",
    "missing-input-secret"
  ]
}

is it exclusive issue for me that file_get_contents is not working anymore?

if you want guys i can make a PR using Guzzle, or curl..

@dann95
Copy link
Contributor Author

dann95 commented Nov 4, 2016

ping @anhskohbo

@jehadja
Copy link

jehadja commented Nov 5, 2016

hello,
since tow days i have this issue too
ErrorException in NoCaptcha.php line 125: file_get_contents(): SSL: Connection reset by peer thanks

@anhskohbo
Copy link
Owner

@dann95 Seem that trouble is by openssl (php.ini) in your machine or related with IPv6 issues.
See: https://getcomposer.org/doc/articles/troubleshooting.md#operation-timed-out-ipv6-issues-

@dann95
Copy link
Contributor Author

dann95 commented Nov 5, 2016

@anhskohbo mine was not related to SSL , see error it says timed out, and as i show using curl it grabbed correctly. its weird, it backed work but get off that time.

@dann95 dann95 closed this as completed Nov 5, 2016
@dann95
Copy link
Contributor Author

dann95 commented Nov 5, 2016

@anhskohbo dont u thinik better upgrade it to a curl, or curl wrapper like https://github.com/guzzle/guzzle

@anhskohbo
Copy link
Owner

Yes, I have plan to use Guzzle. BTW a pull request is welcome :)

@anhskohbo anhskohbo reopened this Nov 5, 2016
@eggnaube
Copy link

@jehadja do you have any solution for that? I have this problem too.

@jehadja
Copy link

jehadja commented Nov 10, 2016

I am sorry I still have same problem I tried to composering update and it gives me error wich belong to ip6 as they told in recent comments so I understood that my problem on opeating system not in code I tried disable ip6 doesn't help so I am waiting to upload my code to another operating system to decide what I shall do .

@chrishessler
Copy link

chrishessler commented Dec 6, 2016

I've had the same error. Maybe my solution will help:

The problem was the production server, which does NOT allow connections to external sources.

My solution was to add a 'proxy' => 'value' entry in the $context['http'] in sendRequestVerify() function.

Kind regards

@dann95
Copy link
Contributor Author

dann95 commented Dec 7, 2016

it still there =/ #55

@anhskohbo
Copy link
Owner

Seem fixed #55
Thanks @dann95

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

5 participants