Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Not working with multiple CPU hosting #182

Open
snapapplabs opened this issue Mar 26, 2019 · 4 comments
Open

Not working with multiple CPU hosting #182

snapapplabs opened this issue Mar 26, 2019 · 4 comments

Comments

@snapapplabs
Copy link


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
@Taluu
Copy link
Contributor

Taluu commented Mar 27, 2019

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

@peter279k
Copy link
Contributor

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.

@Elmsellem
Copy link

Elmsellem commented Jul 15, 2020

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"

@Taluu
Copy link
Contributor

Taluu commented Jul 16, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants