Cosmonaut icon indicating copy to clipboard operation
Cosmonaut copied to clipboard

Error because constructor is missing for the CosmosStoreTrigger extension for azure functions

Open sandromastronardi opened this issue 5 years ago • 0 comments

When I use the CosmosStoreTrigger in my function to trigger when a document changes, I get this error when the function app starts: The 'xxx' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'xxx'. Cosmonaut.WebJobs.Extensions: Method not found: 'Void Cosmonaut.CosmosStoreSettings..ctor(System.String, System.Uri, System.String, Microsoft.Azure.Documents.Client.ConnectionPolicy, Microsoft.Azure.Documents.IndexingPolicy, Int32, Boolean, Int32)'.

Apparently, at some point some constructors were removed, but the NuGet wasn't updated? It's still in preview, but now it just doesn't work... I tried taking an earlier version (2.9.0) but It didn't help, I guess it wasn't far enough back, but I'd rather use a more recent version.

I tried pinpointing it in the code, but couldn't seem to find where it is caused...

Regards,

Sandro Mastronardi

sandromastronardi avatar Jun 22 '20 23:06 sandromastronardi