下面是一段代碼:超時錯誤AWS SNSClient發佈請求
//Publishing the topic
snsClient.Publish(new PublishRequest
{
Subject = Constants.SNSTopicMessage,
Message = snsMessageObj.ToString(),
TopicArn = Settings.TopicArn
});
我收到以下錯誤:
The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.
但是無法想出如何解決這個問題。任何提示或鏈接都會有幫助。
•網絡中斷髮生時:當一個或多個的下列條件,則可能會發生
也許太明顯,但snsClient有效(即正確連接,現有的憑據,地區...)? – Gonfva
是@Gonfva。它們是有效的。我能夠做這些操作。但我很少遇到錯誤。但仍然需要解決。 –