簡體   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