简体   繁体   English

更新Azure Web Jobs SDK更新后出现错误

[英]Error After Updating Azure Web Jobs SDK update

Hi I have updated the nuget packages for Azure Web Jobs SDK to version 2.0 and I am getting the following error. 嗨,我已经将Azure Web Jobs SDK的nuget软件包更新为版本2.0,并且出现以下错误。

 Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: Functions.SparkPostCold_Queue ---> System.InvalidOperationException: Exception binding parameter 'emails' ---> System.InvalidOperationException: Invalid invoke string format for attribute. at Microsoft.Azure.WebJobs.Host.Bindings.AttributeCloner`1.New(String invokeString) at Microsoft.Azure.WebJobs.Host.Bindings.DefaultAttributeInvokerDescriptor`1.FromInvokeString(AttributeCloner`1 cloner, String invokeString) at Microsoft.Azure.WebJobs.Host.Bindings.AttributeCloner`1.<ResolveFromInvokeStringAsync>d__10.MoveNext()

My function looks like below. 我的功能如下所示。

   public static void QueueItem(
    [Table("emails")] IQueryable<EmailEntity> emails,
    [Queue("queue")] ICollector<string> outputQueueMessage,
    TextWriter logger)
    {
        var query = from p in emails select p;
        foreach (EmailEntity email in query)
        {
            outputQueueMessage.Add(email.RowKey);

        }
    }

Any thoughts will be highly appreciated. 任何想法将不胜感激。

I think this is a regression bug in the SDK. 我认为这是SDK中的回归错误。 I saw you filed https://github.com/Azure/azure-webjobs-sdk/issues/1337 . 我看到您提出了https://github.com/Azure/azure-webjobs-sdk/issues/1337 I'll take a look at it. 我来看一下。 Follow that issue for updates. 请关注该问题以进行更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM