question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid HTTP version string: HTTP/1.0

See original GitHub issue

Version: 7.0.0

Environment:

  • Mac OS X
  • Safari
  • 5.12.0

Expected result: Connection should be made without any issues

Actual result: Getting this error in Safari

WebSocket connection to 'wss://<domain name>/primus/?isapp=false&_mirage=90rqrqew432&_primuscb=LiPtb_J&EIO=3&transport=websocket&sid=oLp9L-EBnJ--2CtOAAAA&t=LiPtc2f&b64=1' failed: Invalid HTTP version string: HTTP/1.0

Steps to reproduce: I don’t know how to reproduce but here is what I did that may have caused issues.

  • upgraded engine.io and primus to latest
  • started using actual domain names with proper SSL certificate

I should also mention that I upgraded to 7.0.0 and only disabled ping and pong settings in client. Is that enough?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
peacemakrcommented, Mar 29, 2017

Version 10.0.3 (12602.4.8)

Looks like these HAProxy auth settings are messing with Safari (only).

  acl auth_ok http_auth(developers)
  http-request auth unless auth_ok

Is there a sample HAproxy config hat works best with Primus somewhere?

0reactions
spinuscommented, Sep 3, 2018

@peacemakr the info about basic auth finished my few days debugging of that issue and saved long days, thank you very much.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hypertext Transfer Protocol -- HTTP/1.0 - W3C
A client establishes a connection with a server and sends a request to the server in the form of a request method, URI,...
Read more >
postgresql - Pgadmin4: Invalid HTTP Version ... - Stack Overflow
The problem was in regular expression for nginx location. Nginx somehow strangely truncates the URL parameters.
Read more >
Safari Websocket: Invalid HTTP version string: HTTP/1.0
原因是Safari的Websocket连接是基于HTTP/1.1的,需要把Websocket Sever的应答也基于HTTP/1.1一个不合适应答报文示例:1、Safari请求基于HTTP/1.1 ...
Read more >
'on postgres@domain.tld HTTP/1.0''-docker - appsloveworld.com
Coding example for the question Pgadmin4: Invalid HTTP Version 'Invalid HTTP Version: 'on postgres@domain.tld HTTP/1.0''-docker.
Read more >
HTTP::version - F5 Cloud Docs
can be used for Sharepoint Portal SSL Termination. Introduced: BIGIP-9.0.0. The BIG-IP API Reference documentation contains community-contributed content ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found