[英]OperationContext usage (Microsoft.WindowsAzure.Storage)
[英]Microsoft.WindowsAzure.Storage: Server encountered an internal error without telling the root cause
在本地,我用 azurite 創建了一個 Blob 存儲容器,我可以使用 Storarge Explorer 寫入/刪除文件。
此代碼開始正常,但在視圖秒后結束,出現未處理的異常
using System.IO;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
namespace WatchStorage
{
#region Constructor
public class WatchStorageFunctions
{
private ILogger Logger { get; set; }
public WatchStorageFunctions(ILogger<WatchStorageFunctions> logger)
{
this.Logger = logger;
}
#endregion
[FunctionName("TaskWatchWebjobs")]
public void RunTaskWatchWebjobs([BlobTrigger("azuritstore/{name}", Connection = "AzureWebJobsStorage")]Stream myBlob, string name)
{
this.Logger.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");
}
}
}
這是 local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard": "",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"StorageConnectionString": "UseDevelopmentStorage=true"
}
}
錯誤信息只是
[] Host lock lease acquired by instance ID '00000000000000000000000049821116'.
[] An unhandled exception has occurred. Host is shutting down.
[] Microsoft.WindowsAzure.Storage: Server encountered an internal error. Please try again after some time.
[] Stopping host...
[] Stopping JobHost
[] Job host stopped
[] Host shutdown completed.
我是新手,想知道更詳細的錯誤信息。 那可能嗎? 非常感謝任何進一步的提示!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.