redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

@redux-devtools/cli doesn't run on HTTPS after upgrade to 2.0.0

Open GeneZharov opened this issue 2 years ago • 0 comments

Previously, I used version @redux-devtools/[email protected] and it worked fine.

I generated a local SSL certificate using mkcert:

mkcert \
  -cert-file local-cert.pem \
  -key-file local-key.pem \
  localhost 127.0.0.1 ::1

Then I run the Redux DevTools server using this command:

$ redux-devtools --hostname=localhost --port=8080 --protocol=https --key=local-key.pem --cert=local-cert.pem

[ReduxDevTools] Start server...
--------------------------------------------------------------------------------

   [Busy] Launching SocketCluster
   [Active] SocketCluster started
            Version: 14.4.2
            Environment: dev
            WebSocket engine: ws
            Port: 8080
            Master PID: 3833
            Worker count: 1
            Broker count: 1

   [Done] Migrations are finished

Then I open https://localhost:8080 and I see my Redux DevTools there.

But after I upgraded to @redux-devtools/[email protected] the output changed to this:

$ redux-devtools --hostname=localhost --port=8080 --protocol=https --key=local-key.pem --cert=local-cert.pem

[ReduxDevTools] Start server...
--------------------------------------------------------------------------------

   [Done] Migrations are finished

And although there are no errors in the output if I open https://localhost:8080 the webpage is not opened and instead I see an error from Chrome:

This site can’t provide a secure connection
localhost sent an invalid response.
ERR_SSL_PROTOCOL_ERROR

GeneZharov avatar Apr 25 '23 18:04 GeneZharov