-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors after upgrading to 1.0.19 #684
Comments
We have exactly the same problems. |
Is there a way to downgrade the CLI that visual studio uses? It looks like its installed automatically. |
same here. It seems the config extensions is not invoked at all. I can debug through it if using a previous version of the func cli. And I do have the ExtensionConfigProvider in the same assembly as the functions. |
It seems like the latest update to AzureFunctionsTools that VS did it's now using func.exe version func/2.0.1.36-beta. If I force visualstudio to use func/2.0.1.35-beta everything works fine again. |
@dlalex83 how did you force VS to do that? :-) |
Copying this from this original post: https://github.com/Azure/app-service-announcements/issues/129#issuecomment-417159056 Using pinned version of core tools with visual studio Download and extract this zip file |
ah, ok, I see, it's a previous version (which was working recently). But if i'm not wrong it will be outdated in a month. So it's still would be nice to get it working :-) |
@dlalex83 yes i believe you have to use 1.0.19 SDK with the new CLI version - https://github.com/Azure/azure-functions-core-tools/releases/tag/2.0.1-beta.36 |
@gorillapower that's what I'm doing. using 1.0.19 with 2.0.1-beta.35 or lower, breaks because of the breaking changes that were released in 1.0.19. The problem is, using 1.0.19 and 2.0.36-beta breaks the ExtensionConfigProvider extensions. As it seems it's not loading them up at all. |
@dlalex83 are you able to use V1.0.14 with 2.0.1-beta.35? |
@gorillapower didn't try 1.0.14. But I'm using 1.0.11 SDK with 2.0.1.beta-35 with no problems and IExtensionConfigProvider custom classes work perfectly fine. |
@gorillapower just tested 1.0.14 with 2.0.1.35-beta and it's working fine, but I don't have custom ExtensionConfigProviders setup in this example. |
Ok, found the solution thanks to @brettsam comment here. The extensions registration pipeline has changed and you now need a class like this one:
and that will register the extension on startup which will correctly get invoked now. Hope this helps. |
uhm, it is all working fine on my local machine now, but breaks once deployed :( I did remove the pin from appsettings. Baffled. |
@dlalex83 -- what error do you get when you deploy? The same thing you were getting previously when running locally? |
@brettsam yes.As if it cant still load the extension. |
@brettsam this probably doesn't belong here, but I'm not sure if it should go to the azure-functions-vs-build-sdk repo, or the azure-functions-host one. |
@dlalex83 this is very silly and just to double check - but could you try restarting your production app and make sure that the functions runtime version is as expected? |
@mhoeger not silly at all. you've pointed me in the right direction. So , after I've removed the pinned version in app settings I've noticed it's now running v1. (shouldn't it have gone back to ~2?)
I've then added the FUNCTIONS_EXTENSION_VERSION setting back with ~2 as value.
but every single function fails indexing with no specific error (Error indexing method 'FunctionName'). |
same scenario here, everything setup. WebJobsStartup registers the extension (ExtensionConfigContext) but giving error on launch Please guide, how to proceed now. I think this is last point to run the function locally. |
@dlalex83 -- 11961 will be available until the end of September 2018. Some additional questions to help narrow down:
@harjotsmart -- Can you share your nuget package references for your project? It seems like there's a version mismatch with ILogger. |
@brettsam the app is deployed via bitbucket. I can't really use that guide you sent to share it privately as the host failes to index the function, hence I can't run it. Anyway the function app name is lts-caching.azurewebsites.net. Thanks for looking into it. |
Has anyone been able to get past this issue? How are you registering function filters now? |
@brettsam any chance you managed to investigate our app? thanks. |
@mayoatbm -- see this: Azure/azure-functions-host#3401 (comment) @dlalex83 -- I see this exception: It's likely that the build process isn't correctly applying your extension to extensions.json when publishing. See this Azure/azure-functions-host#3386 (comment) for a workaround (the global filter issue I linked to above mentions it as well). |
@brettsam thanks. I can see my local extension.json has my custom Startup whilst the extension.json of the deployed app function doesnt have it. I'll try and use that workaround but is that something you guys are looking to fix? Thanks for your help. |
Closing as stale |
Hi All,
after functions SDK has been updated to 1.0.19 (with corresponding packages like Microsoft.Azure.WebJobs and Microsoft.Azure.WebJobs.Extensions to 3.0.0-beta8 as mentioned here: Azure/app-service-announcements#129).
in the project I have had a custom binding implemented, I was using this approach: https://github.com/Azure/azure-webjobs-sdk/wiki/Creating-custom-input-and-output-bindings
Noticed two things that does not work anymore:
Note that ExtensionConfigProvider is located in different assembly (not in the functions' one). Also this code was working before SDK update occured.
So, after I run the project I can see a bunch of a following errors:
Error indexing method 'FunctionClass.MethodName'
[8/31/2018 7:40:28 AM] Microsoft.Azure.WebJobs.Host: Error indexing method 'FunctionClass.MethodName'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'bindableParameterName' to type ParameterType. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. config.UseServiceBus(), config.UseTimers(), etc.).
The text was updated successfully, but these errors were encountered: