簡體   English   中英

該操作未在指定的00:01:00超時內完成

[英]The operation did not complete within the allotted timeout of 00:01:00

我正在使用代碼片段將消息發送到服務總線主題。

        try
        {
            // sb is instance of ServiceBusConfig.GetServiceBusForChannel
            await sb.SendAsync(message);
        }
        catch (Exception ex)
        {
            this.logger.LogError(
                "chanel",
                "An error occurred while sending a notification: " + ex.Message,
                ex);
            throw;
        }

和實現是

    public async Task SendAsync(BrokeredMessage message)
    {
        if (this.topicClient == null)
        {
            this.topicClient = TopicClient.CreateFromConnectionString(this.primaryConnectionString, this.topicPath);
            this.topicClient.RetryPolicy = this.retryPolicy;
        }

        await this.topicClient.SendAsync(message);
    }

錯誤:-

“ ErrorCode,12005,Message,”“發送通知時發生錯誤:該操作未在指定的超時時間00:01:00內完成。為此操作分配的時間可能是較長超時的一部分。有關異常類型和適當的異常處理的詳細信息,異常,“”“ Microsoft.ServiceBus.Messaging.MessagingException:該操作未在分配的超時時間00:01:00內完成。分配給該操作的時間可能是超時時間更長。

有關異常類型和正確異常處理的更多信息

這偶爾發生。 Azure可以毫不費力地更改和更改其基礎硬件。 這些錯誤有時會彈出。 只要您在適當的地方有適當的重試邏輯,該消息最終就會通過...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM