suddenly can't establish connection with server
hi all,
i use elephant to emit to events messages to a AWS EC2 server, everything was working fine until now, suddenly this stopped working properly. for some reason that I can't explain the connection to the server is being refused. here is the error I've been receiving. curiosity, the connection through client and the socket.io server is still working...
this is been super block on a live project, let me know what I can do.
object(ElephantIO\Exception\ServerConnectionFailureException)#21 (8) {
["errorMessage":"ElephantIO\Exception\ServerConnectionFailureException":private]=>
NULL
["message":protected]=>
string(70) "An error occurred while trying to establish a connection to the server"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(78) "/var/app/current/vendor/wisembly/elephant.io/src/Engine/SocketIO/Version1X.php"
["line":protected]=>
int(187)
["trace":"Exception":private]=>
array(3) {
[0]=>
array(6) {
["file"]=>
string(78) "/var/app/current/vendor/wisembly/elephant.io/src/Engine/SocketIO/Version1X.php"
["line"]=>
int(48)
["function"]=>
string(9) "handshake"
["class"]=>
string(36) "ElephantIO\Engine\SocketIO\Version1X"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[1]=>
array(6) {
["file"]=>
string(59) "/var/app/current/vendor/wisembly/elephant.io/src/Client.php"
["line"]=>
int(60)
["function"]=>
string(7) "connect"
["class"]=>
string(36) "ElephantIO\Engine\SocketIO\Version1X"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[2]=>
array(6) {
["file"]=>
string(29) "/var/app/current/web/hugo.php"
["line"]=>
int(28)
["function"]=>
string(10) "initialize"
["class"]=>
string(17) "ElephantIO\Client"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
}
["previous":"Exception":private]=>
NULL
}
NULL
Do you try to connect to a secure websocket server? Does it have a Let’s Encypt certificate.
Recently an intermediate root certificate has been revoked (last Thursday) and that had caused many “sudden” issues like this one. That could be a solid lead.
Best
On Mon 4 Oct 2021 at 20:36, Hugo Martins @.***> wrote:
hi all,
i use elephant to emit to events messages to a AWS EC2 server, everything was working fine until now, suddenly this stopped working properly. for some reason that I can't explain the connection to the server is being refused. here is the error I've been receiving. curiosity, the connection through client js and the socket.io server is still working...
this is been super block on a live project, let me know what I can do.
` object(ElephantIO\Exception\ServerConnectionFailureException)#21 https://github.com/Wisembly/elephant.io/pull/21 (8) {
["errorMessage":"ElephantIO\Exception\ServerConnectionFailureException":private]=> NULL ["message":protected]=> string(70) "An error occurred while trying to establish a connection to the server" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(78) "/var/app/current/vendor/wisembly/ elephant.io/src/Engine/SocketIO/Version1X.php" ["line":protected]=> int(187) ["trace":"Exception":private]=> array(3) { [0]=> array(6) { ["file"]=> string(78) "/var/app/current/vendor/wisembly/ elephant.io/src/Engine/SocketIO/Version1X.php" ["line"]=> int(48) ["function"]=> string(9) "handshake" ["class"]=> string(36) "ElephantIO\Engine\SocketIO\Version1X" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [1]=> array(6) { ["file"]=> string(59) "/var/app/current/vendor/wisembly/elephant.io/src/Client.php" ["line"]=> int(60) ["function"]=> string(7) "connect" ["class"]=> string(36) "ElephantIO\Engine\SocketIO\Version1X" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [2]=> array(6) { ["file"]=> string(29) "/var/app/current/web/hugo.php" ["line"]=> int(28) ["function"]=> string(10) "initialize" ["class"]=> string(17) "ElephantIO\Client" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL } `
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Wisembly/elephant.io/issues/215, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZE2RVXD55LC7CTICKN3TUFHX3XANCNFSM5FJ76UBQ .
--
[image: Capture d’écran 2020-04-16 à 14.00.24.png]
Guillaume Potier
Fondateur
@.*** @.**> +33 6 70 52 81 08 [image: logo] https://www.linkedin.com/company/wisembly/?viewAsMember=true https://twitter.com/wisembly https://www.facebook.com/Wisembly www.wisembly.com https://tracking.vocus.io/link?id=ed236db3-e558-451e-af56-296a33ce0148&url=https%3A%2F%2Ftracking.vocus.io%2Flink%3Fid%3D9bdeb7d8-0051-4763-8f89-71ef082dd143%26url%3Dhttps%253A%252F%252Ftracking.vocus.io%252Flink%253Fid%253D53d6ae7d-781e-4006-a9bb-022a73afbcc5%2526url%253Dhttp%25253A%25252F%25252Fwww.wisembly.com
That sucks haha
On Mon, Oct 4, 2021, 3:09 PM Guillaume Potier @.***> wrote:
Do you try to connect to a secure websocket server? Does it have a Let’s Encypt certificate.
Recently an intermediate root certificate has been revoked (last Thursday) and that had caused many “sudden” issues like this one. That could be a solid lead.
Best
On Mon 4 Oct 2021 at 20:36, Hugo Martins @.***> wrote:
hi all,
i use elephant to emit to events messages to a AWS EC2 server, everything was working fine until now, suddenly this stopped working properly. for some reason that I can't explain the connection to the server is being refused. here is the error I've been receiving. curiosity, the connection through client js and the socket.io server is still working...
this is been super block on a live project, let me know what I can do.
` object(ElephantIO\Exception\ServerConnectionFailureException)#21 https://github.com/Wisembly/elephant.io/pull/21 (8) {
["errorMessage":"ElephantIO\Exception\ServerConnectionFailureException":private]=>
NULL ["message":protected]=> string(70) "An error occurred while trying to establish a connection to the server" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(78) "/var/app/current/vendor/wisembly/ elephant.io/src/Engine/SocketIO/Version1X.php" ["line":protected]=> int(187) ["trace":"Exception":private]=> array(3) { [0]=> array(6) { ["file"]=> string(78) "/var/app/current/vendor/wisembly/ elephant.io/src/Engine/SocketIO/Version1X.php" ["line"]=> int(48) ["function"]=> string(9) "handshake" ["class"]=> string(36) "ElephantIO\Engine\SocketIO\Version1X" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [1]=> array(6) { ["file"]=> string(59) "/var/app/current/vendor/wisembly/elephant.io/src/Client.php" ["line"]=> int(60) ["function"]=> string(7) "connect" ["class"]=> string(36) "ElephantIO\Engine\SocketIO\Version1X" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [2]=> array(6) { ["file"]=> string(29) "/var/app/current/web/hugo.php" ["line"]=> int(28) ["function"]=> string(10) "initialize" ["class"]=> string(17) "ElephantIO\Client" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL } `
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Wisembly/elephant.io/issues/215, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AADZE2RVXD55LC7CTICKN3TUFHX3XANCNFSM5FJ76UBQ
.
--
[image: Capture d’écran 2020-04-16 à 14.00.24.png]
Guillaume Potier
Fondateur
@.*** @.**> +33 6 70 52 81 08 [image: logo] https://www.linkedin.com/company/wisembly/?viewAsMember=true https://twitter.com/wisembly https://www.facebook.com/Wisembly www.wisembly.com < https://tracking.vocus.io/link?id=ed236db3-e558-451e-af56-296a33ce0148&url=https%3A%2F%2Ftracking.vocus.io%2Flink%3Fid%3D9bdeb7d8-0051-4763-8f89-71ef082dd143%26url%3Dhttps%253A%252F%252Ftracking.vocus.io%252Flink%253Fid%253D53d6ae7d-781e-4006-a9bb-022a73afbcc5%2526url%253Dhttp%25253A%25252F%25252Fwww.wisembly.com
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Wisembly/elephant.io/issues/215#issuecomment-933857111, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIIPOTTWQBB2B7TILCGIT3UFIJXXANCNFSM5FJ76UBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@guillaumepotier yes its connected to a secure websocket server and with "lets encrypt" as well. seems that the following settings are useful at least for a temporary workaround:
'context' => [ 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false ] ]
fixed for me by updating server. ie: yum update