2016-10-24 16 views
1

私はbehat laravelと一緒に作業していましたが、どういうわけかちょうど動作を停止しました。 このエラーを検索しましたが、解決策が見つかりませんでした。私はこのエラーにBehatはSSLエラーの処理を停止しましたfwrite()laravel

[ErrorException] 
    fwrite(): SSL operation failed with code 1. OpenSSL Error messages: 
    error:1409F07F:SSL routines:ssl3_write_pending:bad write retry 

を得続ける は、誰もがこれで私を助けていただけますか?

コードは問題ではなく、X行を読み込んで、それが存在するかどうかは関係ありません。

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 "[email protected]"     # 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 "[email protected]"         # 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 [email protected]" # FeatureContext::assertPageContainsText() 



    [ErrorException] 
    fwrite(): SSL operation failed with code 1. OpenSSL Error messages: 
    error:1409F07F:SSL routines:ssl3_write_pending:bad write retry 

これは、エラーが発生した正確な方法で、私は最後の名前が表示されるはずです知っている、私は手動でそれを行うとき、私は最後の名前を見ることができますが、何とかそれが立ち往生し、ちょうど私ならば、そのエラーをtrowsジェシーは、それが次のウィッヒでエラーが電子メール

だろうと最終的にいくつかのより多くの

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 

を掘った後、私はまだのソースを知らない参照くださいbessemとtrowsに成功する参照行を削除しますしかし、問題は、

+0

このエラーのコンテキストを用意する必要があります。これが投げられたときに何が実行されていますか? – Devon

+0

このエラーは、動作テストを実行するときにスローされます。ベンダー/ bin/behatを使用すると、同僚のPC上でうまく動作しますが、問題なく動作しています。 – Jesse

+0

それを絞ることはありません... behatテストは何かをテストすることができます。 – Devon

答えて

0

人がdev環境でbehatを使用して同様の問題を抱えている場合は、そうです。 私のようなものではありませんが、SMTPは使用しませんが、.envファイルのMAil_DRIVERとしてログを使用してください。

0

fwrite()の直前にsleep(5)を追加してみてください。 それはその後うまくいくはずです。

SSL_ERROR_WANT_WRITEまたはSSL_ERROR_WANT_READを返すようにSSL_Writeを確認し、同じパラメータを使用してSSL_writeの呼び出しを再度繰り返してください。

+0

これを追加すると、残念ながら動作しません。 – Jesse

+0

Bummer ...このエラーが発生したときに動いていました。うまくいけばもっと経験豊富な人があなたを助けることができればと思います。 – Jaldre

+0

私はこれを検索するときあなたのポストを見たかもしれないと思う、あなたに試していただきありがとう:) – Jesse

関連する問題