Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Functions v2 - Cannot bind parameter 'log' to type TraceWriter #900
Whenever I call my published azure function it results in the following error:
Error indexing method 'GetScriptsDownloadUri.Run'
Standard HTTP Trigger function with the following signature:
public static async Task<IActionResult> Run([HttpTrigger(AuthorizationLevel.Function, "get", Route = null)]HttpRequest req, TraceWriter log)
This often happens due to a version mismatch between what you're running locally and what you're running when deployed.
It looks like you may be building a functions v2.0 applicaiton locally, but you're deploying to a functions v1.0 site (I see your site is using v1.0.11913.0).
How do you recommend configuring the Site Version? When I push to Azure it defaults to v1 and in the Function App Settings won't let me change Runtime Version: "Cannot Upgrade with Existing Functions Major Version upgrades can introduce breaking changes..." But if I create another function app I can't push to it... "please change the version using the the portal or update your FUNCTION_EXTENSION_VERSION appsetting and retry..." I'm able to build and test locally... Any ideas?
This helped: #667 (comment)