traccar https: Error during WebSocket handshake: net::ERR_RESPONSE_HEADERS_TRUNCATED

Primtek4 years ago

Hi All,

We are facing problem with secure traccar (https), we have followed the instruction on: https://www.traccar.org/secure-connection/

we see below:

app.min.js:465 WebSocket connection to 'wss://mydomain.com/gps/api/socket' failed: Error during WebSocket handshake: net::ERR_RESPONSE_HEADERS_TRUNCATED

traccar.conf

    <entry key='web.enable'>true</entry>
    <entry key='web.origin'>*</entry>
    <entry key='web.url'>http://1.2.3.4:8082</entry>

httpd-le-ssl.conf

 ProxyRequests off

  ProxyPass /gps/api/socket ws://localhost:8082/api/socket
  ProxyPassReverse /gps/api/socket ws://localhost:8082/api/socket

  ProxyPass /gps/ http://localhost:8082/
  ProxyPassReverse /gps/ http://localhost:8082/
  ProxyPassReverseCookiePath / /gps/

  Redirect permanent /gps /gps/

  SSLCertificateFile /etc/letsencrypt/live/xxxxxxxxxxxxxx/cert.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/xxxxxxxxxxxxxx/privkey.pem
  Include /etc/letsencrypt/options-ssl-apache.conf
  SSLCertificateChainFile /etc/letsencrypt/live/xxxxxxxxxxxxxx/chain.pem