aryehraber / statamic-captcha

Statamic Addon that protects your Statamic forms using a Captcha service.
MIT License
11 stars 8 forks source link

Get error when submitting the form #5

Closed axelferdinand closed 3 years ago

axelferdinand commented 4 years ago

I get this error when submitting my form:

GuzzleHttp\Exception\ConnectException cURL error 35: OpenSSL SSL_connect: Connection reset by peer in connection to www.google.com:443 (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) http://swisstime.proto/!/forms/contact

Please note that the form submit works just fine without statamic-captcha

Details Statamic 3.0.10 Pro Laravel 7.26.1 PHP 7.4.6 aryehraber/statamic-captcha 1.0.3 statamic/migrator dev-master statamic/ssg 0.2.0

image

image

image

image

aryehraber commented 4 years ago

Hi @axelferdinand! Thanks for opening this issue, I don't think I've seen this error before... Let's see if we can figure something out!

It seems to be an SSL issue, is the server up to date with OpenSSL, Curl etc?

Also, from the error message it looks like the domain in question (http://swisstime.proto/!/forms/contact) uses a non-standard TLD (.proto), I wonder if that is causing the issue? I assume this is your local environment, instead of .test for example?

aryehraber commented 4 years ago

p.s. I advise that you reset your Recaptcha secret in Google's console since it's never supposed to be shared publicaly (from your screenshot above).

axelferdinand commented 4 years ago

Thanks! Yes, .proto is my localhost domain. I will try submitting online (swisstime.no) and see if that works!

But that being said – in v2, I can submit the form locally, both via localhost and swisstime.proto. But in v3, I get this error locally (?)

axelferdinand commented 4 years ago

Removing 'forms' => ['contact', 'review'], from captcha.php makes the form submit normally, but then recaptcha doesn't work, obviously.

aryehraber commented 4 years ago

Oh interesting that it did work in V2... As far as I remember the underlying implementation is the same (connecting to Google for verification etc).

Let me know how it goes once pushed to a real staging/production server, that'll at least tell us if the issue is local or more general.

aryehraber commented 3 years ago

Closing due to inactivity, but feel free to reopen if this issue still persists. Thanks!