I was working with behat Laravel and somehow it just stopped working. I have searched for this error, yet I have not found any solution; I keep getting this error
[ErrorException]
fwrite(): SSL operation failed with code 1. OpenSSL Error messages:
error:1409F07F:SSL routines:ssl3_write_pending:bad write retry
Could anyone please help me with this?
The code is not the problem, it reads X lines and then just says it cannot find what ever I put on that line doesn't matter if it would exist or not.
And I follow "Gebruiker aanmaken" # FeatureContext::clickLink()
Then I should see "Nieuwe gebruiker aanmaken" # FeatureContext::assertPageContainsText()
And I fill in "Voornaam" with "Jesse" # FeatureContext::fillField()
And I fill in "Achternaam" with "Bessem" # FeatureContext::fillField()
And I fill in "E-Mailadres" with "jesse@jbdevv.nl" # FeatureContext::fillField()
And I fill in "Functie" with "Eigenaar" # FeatureContext::fillField()
And I fill in "Geboortedatum" with "14-07-1994" # FeatureContext::fillField()
And I click on submit button "Aanmaken" # FeatureContext::iClickOnSubmitButton()
Then I should not see "Nieuwe gebruiker aanmaken" # FeatureContext::assertPageNotContainsText()
And I should see "Jesse" # FeatureContext::assertPageContainsText()
And I should see "Bessem" # FeatureContext::assertPageContainsText()
The text "Bessem" was not found anywhere in the text of the current page. (Behat\Mink\Exception\ResponseTextException)
And I should see "jesse@jbdevv.nl" # FeatureContext::assertPageContainsText()
And I should see "Eigenaar" # FeatureContext::assertPageContainsText()
And I should see "14-07-1994" # FeatureContext::assertPageContainsText()
And I should see "Er is een e-mail verstuurd naar Jesse@jbdevv.nl" # FeatureContext::assertPageContainsText()
[ErrorException]
fwrite(): SSL operation failed with code 1. OpenSSL Error messages:
error:1409F07F:SSL routines:ssl3_write_pending:bad write retry
this is the exact way the error occurs, I know I should see the last name, when I manually do it I can see the last name, but somehow it gets stuck and just throws that error, if I would remove the line see jesse it would succeed on see bessem and throws an error at the next one which would be the email
and finally after some more digging
ErrorException in StreamBuffer.php line 232:
fwrite(): SSL: Broken pipe
in StreamBuffer.php line 232
at HandleExceptions->handleError('2', 'fwrite(): SSL: Broken pipe', '/home/vagrant/aag/code/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php', '232', array('bytes' => 'QUIT ', 'bytesToWrite' => '6', 'totalBytesWritten' => '0'))
at fwrite(resource, 'QUIT ') in StreamBuffer.php line 232
I still do not know the source of the problem though,
Okay, so for if people would have similar problems using behat on dev environment. Dont be like me, dont use SMTP but use log as MAil_DRIVER in your .env file,