Protocol not supported while using host.NewStream

Hello everyone,

I have a KadDHT routing technique setup with a rendezvous point and Bootstrap node is a p2p-circuit-relay. Currently, I managed to connect the nodes but unable to create a stream for them to exchange data. When I am trying to create a stream between the peers using the function host.NewStream(), I am facing an issue Protocol not supported.
Could someone help me in this.

Thanks,
Teja

When you call NewStream, you pass in a protocol name. Before you can do that, you need to register a “stream handler” with host.SetStreamHandler(myProtocolID, ...) on the side receiving the stream.

Thanks Stebalien, I have posted another important question, which is irrelevant to this context. So I am creating another query request.