elephant.io icon indicating copy to clipboard operation
elephant.io copied to clipboard

Not working with multiple CPU hosting

Open snapapplabs opened this issue 6 years ago • 4 comments


Fatal error: Uncaught UnexpectedValueException: The server returned an unexpected value. Expected "HTTP/1.1 101", had "HTTP/1.1 400" in /var/www/html/yolo/api/vendor/wisembly/elephant.io/src/Engine/SocketIO/Version1X.php:266 Stack trace: #0 /var/www/html/yolo/api/vendor/wisembly/elephant.io/src/Engine/SocketIO/Version1X.php(73): ElephantIO\Engine\SocketIO\Version1X->upgradeTransport() #1 /var/www/html/yolo/api/vendor/wisembly/elephant.io/src/Client.php(60): ElephantIO\Engine\SocketIO\Version1X->connect() #2 /var/www/html/yolo/api/api.php(757): ElephantIO\Client->initialize() #3 /var/www/html/yolo/api/api.php(742): send_ping_notification_socket('2', 'Two', 'http://18.224.2...', '1', '1', 'One', 'http://18.224.2...', '1') #4 /var/www/html/yolo/api/api.php(449): send_ping(Array, Array) #5 /var/www/html/yolo/api/index.php(28): update_user('2', Array, Array) #6 {main} thrown in /var/www/html/yolo/api/vendor/wisembly/elephant.io/src/Engine/SocketIO/Version1X.php on line 266

snapapplabs avatar Mar 26 '19 02:03 snapapplabs

I don't get what's wrong. Wrong version maybe ?

Taluu avatar Mar 27 '19 00:03 Taluu

Hi @snapapplabs, could you provide the sample code that you execute?

We can try to reproduce issue and help you to find the current problem.

peter279k avatar Apr 12 '19 02:04 peter279k

Hi @Taluu This error is thrown when using cluster module in nodejs

Fatal error: Uncaught UnexpectedValueException: The server returned an unexpected value. Expected "HTTP/1.1 101", had "HTTP/1.1 400"

Elmsellem avatar Jul 15 '20 13:07 Elmsellem

From what I can see in both errors, you are hitting a 400 (bad request). So that means that either the version is wrong (2.x instead of 1.x, or something like that).

You will need to check what request is made, and try it yourself.

Taluu avatar Jul 16 '20 08:07 Taluu