js-waku icon indicating copy to clipboard operation
js-waku copied to clipboard

Report an error when js-waku is running over http and hence cannot connect via WSS

Open vpavlin opened this issue 3 months ago • 1 comments

This is a change request

Problem

When a js-waku app is ran on HTTP (not HTTPS) and also not localhost connection-manager will silently fail to connect to any node.

This is visible when debug:waku* is enabled, but not in "production" setting

waku:error:connection-manager Error dialing peer 16Uiu2HAmSve7tR5YZugpskMv2dmJAsMUKmfWYEKRXNUxRaTCnsXV - Error occurred during XX handshake: Error occurred while verifying signed payload: TypeError: Cannot read properties of undefined (reading 'digest') +0ms

Proposed Solutions

Surface an error/warning about not using HTTPS and hence not being able to connect to any peers to the dev/user

Notes

vpavlin avatar Apr 29 '24 15:04 vpavlin