繁体   English   中英

为什么在 Azure SignalR 上调用通知时出现连接错误

[英]Why am I getting connection error on calling notify on Azure SignalR

I have configured a SignalR resource on my Azure account and am sending a message to the SignalR Hub using the below snippet in an Azure Function written in C#:

await signalRMessages.AddAsync(new SignalRMessage()
            {
                Target = "notify",
                Arguments = new object[] { requestBody }
            });

但是,我不断收到以下错误。

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

I have also verified that the Azure function URL for negotiate function returns me the below information as expected.

{"端点":" https://xxxxxxx.service.signalr.net:5001/client/?hub=broadcast ","accessKey":"yyyyyyy"}

为什么会出现连接错误,我可以在配置中进行哪些更改?

此错误意味着没有服务器在您尝试连接的指定 ip/端口进行侦听。 这可能是由于使用了错误的 IP 地址或错误的PORT引起的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM