小编Dav*_*ith的帖子

我在 BlobStorage 触发器上遇到启动错误

创建 blob 存储触发函数 (v2) 时出现以下错误。

函数运行时无法启动。Microsoft.WindowsAzure.Storage:未找到请求的值“DELETE、GET、HEAD、MERGE、POST、OPTIONS、PUT、PATCH”。System.Private.CoreLib:未找到请求的值“DELETE、GET、HEAD、MERGE、POST、OPTIONS、PUT、PATCH”。

如果我在 VSTS 中创建函数或通过 Azure 门户创建函数,就会发生这种情况。

KUDO 日志显示以下错误:

2019-06-24T13:00:38.588 [Error] A host error has occurred
Microsoft.WindowsAzure.Storage.StorageException : Requested value 'DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH' was not found. ---> System.ArgumentException : Requested value 'DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH' was not found.
   at System.Enum.TryParseEnum(Type enumType,String value,Boolean ignoreCase,EnumResult& parseResult)
   at System.Enum.Parse(Type enumType,String value,Boolean ignoreCase)
   at Microsoft.WindowsAzure.Storage.Shared.Protocol.ServiceProperties.<>c.<ReadCorsPropertiesFromXml>b__67_0(XElement rule)
   at System.Linq.Enumerable.SelectEnumerableIterator.ToList()
   at System.Linq.Enumerable.ToList[TSource](IEnumerable source)
   at Microsoft.WindowsAzure.Storage.Shared.Protocol.ServiceProperties.ReadCorsPropertiesFromXml(XElement element)
   at Microsoft.WindowsAzure.Storage.Shared.Protocol.ServiceProperties.FromServiceXml(XDocument servicePropertiesDocument)
   at Microsoft.WindowsAzure.Storage.Shared.Protocol.HttpResponseParsers.ReadServiceProperties(Stream inputStream)
   at Microsoft.WindowsAzure.Storage.Blob.CloudBlobClient.<>c.<GetServicePropertiesImpl>b__60_2(RESTCommand cmd,HttpResponseMessage resp,OperationContext ctx)
   at async Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteAsyncInternal[T](RESTCommand cmd,IRetryPolicy policy,OperationContext operationContext,CancellationToken token) 
   End …
Run Code Online (Sandbox Code Playgroud)

function azure

6
推荐指数
2
解决办法
1619
查看次数

标签 统计

azure ×1

function ×1