Skip to content

Error starting agent - failed to peek sni and alpns #31

Closed Answered by SajjadPourali
aarongodin asked this question in Q&A
Discussion options

You must be logged in to vote

This error indicates that the TLS server received a malformed TLS connection – a connection that either lacks an SNI extension or sends a non-TLS packet to the TLS server. It may not necessarily be the fault of the connecting agent to the gateway and could result from internet scanning services or similar factors.

However, if you use the Wss (HTTPS+Websocket) protocol to connect to the gateway, you need to use a domain name. I suspect that you intended to connect to the gateway using the Wss protocol but used an IP address in the agent's configuration field.


You can also set the RUST_LOG=narrowlink_gateway=trace environment variable in your gateway's terminal and run it again to obtain…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aarongodin
Comment options

@aarongodin
Comment options

Answer selected by aarongodin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
C-question Category: User questions that are neither feature requests nor bug reports
2 participants