Skip to content
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

NodeJS Code: The binding type(s) 'eventHubTrigger' are not registered. Please ensure the type is correct and the binding extension is installed #4909

Closed
Deepak-Babu opened this issue Sep 9, 2019 · 8 comments

Comments

@Deepak-Babu
Copy link

Deepak-Babu commented Sep 9, 2019

I'm writing function in Nodejs on VSCode, and use Extension Bundle for EventHub and ServiceBus triggers. This setup used to work before , but I'm unable to run my function app locally today. I have the following error from VSCode:

[9/9/2019 5:19:00 PM] The following 2 functions are in error:
[9/9/2019 5:19:00 PM] : The binding type(s) 'serviceBusTrigger' are not registered. Please ensure the type is correct and the binding extension is installed.
[9/9/2019 5:19:00 PM] : The binding type(s) 'eventHubTrigger' are not registered. Please ensure the type is correct
and the binding extension is installed.

The host.Json is as follows:
{
"version": "2.0",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[1.*, 2.0.0)"
}
}

The function.json is as follows:
{
"bindings": [
{
"type": "eventHubTrigger",
"name": "eventHubMessages",
"direction": "in",
"eventHubName": "",
"path": "",
"connection": "",
"cardinality": "many",
"consumerGroup": "local_testing"
}
],
"disabled": false
}

local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"AzureWebJobsDashboard": "<>",
"FUNCTIONS_WORKER_RUNTIME": "node",
"": "",
"my_servicebus": ""
}
}

@brettsam
Copy link
Member

@soninaren / @mhoeger -- any ideas here?

@Deepak-Babu
Copy link
Author

Deepak-Babu commented Sep 10, 2019

additional information:

VS Code Version: 1.38.0 (system setup)
Commit: 3db7e09f3b61f915d03bbfa58e258d6eee843f35

Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.17763

@soninaren
Copy link
Member

soninaren commented Sep 10, 2019

@Deepak-Babu what version of core-tools are you using?, Also can you send full text from the console.

@Deepak-Babu
Copy link
Author

Azure Functions Core Tools (2.7.1585 Commit hash: 9a2b723)
Function Runtime Version: 2.0.12641.0

@Deepak-Babu
Copy link
Author

Executing task: func host start <

              %%%%%%
             %%%%%%
        @   %%%%%%    @
      @@   %%%%%%      @@
   @@@    %%%%%%%%%%%    @@@
 @@      %%%%%%%%%%        @@
   @@         %%%%       @@
     @@      %%%       @@
       @@    %%      @@
            %%
            %

Azure Functions Core Tools (2.7.1585 Commit hash: 9a2b723)
Function Runtime Version: 2.0.12641.0
[9/10/2019 9:23:01 PM] Building host: startup suppressed:False, configuration suppressed: False
[9/10/2019 9:23:02 PM] Looking for extension bundle Microsoft.Azure.Functions.ExtensionBundle at C:\Users....\AppData\Local\Temp\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle
[9/10/2019 9:23:02 PM] Found a matching extension bundle at C:\Users....\AppData\Local\Temp\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle\1.0.0
[9/10/2019 9:23:02 PM] Loading Extention bundle from C:\Users.....\AppData\Local\Temp\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle\1.0.0
[9/10/2019 9:23:03 PM] Initializing Host.
[9/10/2019 9:23:03 PM] Host initialization: ConsecutiveErrors=0, StartupCount=1
[9/10/2019 9:23:03 PM] LoggerFilterOptions
[9/10/2019 9:23:03 PM] {
[9/10/2019 9:23:03 PM] "MinLevel": "None",
[9/10/2019 9:23:03 PM] "Rules": [
[9/10/2019 9:23:03 PM] {
[9/10/2019 9:23:03 PM] "ProviderName": null,
[9/10/2019 9:23:03 PM] "CategoryName": null,
[9/10/2019 9:23:03 PM] "LogLevel": null,
[9/10/2019 9:23:03 PM] "Filter": "b__0"
[9/10/2019 9:23:03 PM] },
[9/10/2019 9:23:03 PM] {
[9/10/2019 9:23:03 PM] "ProviderName": "Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.SystemLoggerProvider",
[9/10/2019 9:23:03 PM] "CategoryName": null,
[9/10/2019 9:23:03 PM] "LogLevel": "None",
[9/10/2019 9:23:03 PM] "Filter": null
[9/10/2019 9:23:03 PM] },
[9/10/2019 9:23:03 PM] {
[9/10/2019 9:23:03 PM] "ProviderName": "Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.SystemLoggerProvider",
[9/10/2019 9:23:03 PM] "CategoryName": null,
[9/10/2019 9:23:03 PM] "LogLevel": null,
[9/10/2019 9:23:03 PM] "Filter": "b__0"
[9/10/2019 9:23:03 PM] }
[9/10/2019 9:23:03 PM] ]
[9/10/2019 9:23:03 PM] }
[9/10/2019 9:23:03 PM] FunctionResultAggregatorOptions
[9/10/2019 9:23:03 PM] {
[9/10/2019 9:23:03 PM] "BatchSize": 1000,
[9/10/2019 9:23:03 PM] "FlushTimeout": "00:00:30",
[9/10/2019 9:23:03 PM] "IsEnabled": true
[9/10/2019 9:23:03 PM] }
[9/10/2019 9:23:03 PM] SingletonOptions
[9/10/2019 9:23:03 PM] {
[9/10/2019 9:23:03 PM] "LockPeriod": "00:00:15",
[9/10/2019 9:23:03 PM] "ListenerLockPeriod": "00:00:15",
[9/10/2019 9:23:03 PM] "LockAcquisitionTimeout": "10675199.02:48:05.4775807",
[9/10/2019 9:23:03 PM] "LockAcquisitionPollingInterval": "00:00:05",
[9/10/2019 9:23:03 PM] "ListenerLockRecoveryPollingInterval": "00:01:00"
[9/10/2019 9:23:03 PM] }
[9/10/2019 9:23:03 PM] HttpOptions
[9/10/2019 9:23:03 PM] {
[9/10/2019 9:23:03 PM] "DynamicThrottlesEnabled": false,
[9/10/2019 9:23:03 PM] "MaxConcurrentRequests": -1,
[9/10/2019 9:23:03 PM] "MaxOutstandingRequests": -1,
[9/10/2019 9:23:03 PM] "RoutePrefix": "api"
[9/10/2019 9:23:03 PM] }
[9/10/2019 9:23:03 PM] Starting JobHost
[9/10/2019 9:23:03 PM] Starting Host (HostId=txrichlp0657761-2054383963, InstanceId=12ee355d-48ac-4662-ad7a-b36db939cf4b, Version=2.0.12641.0, ProcessId=12632, AppDomainId=1,
InDebugMode=False, InDiagnosticMode=False, FunctionsExtensionVersion=)
[9/10/2019 9:23:03 PM] Loading functions metadata
[9/10/2019 9:23:03 PM] 2 functions loaded
[9/10/2019 9:23:03 PM] Loading proxies metadata
[9/10/2019 9:23:03 PM] Initializing Azure Function proxies
[9/10/2019 9:23:04 PM] 0 proxies loaded
[9/10/2019 9:23:04 PM] Starting language worker process:node --inspect=9229 "C:\Users...\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\workers\node\dist/src/nodejsWorker.js" --host 127.0.0.1 --port 2227 --workerId a2ec9396-3175-4256-94b3-77eb2acb8e6f --requestId fb2491bc-efe6-4513-9cf1-17dfbe9f102f --grpcMaxMessageLength 134217728
[9/10/2019 9:23:04 PM] node process with Id=35632 started
[9/10/2019 9:23:04 PM] Generating 0 job function(s)
[9/10/2019 9:23:04 PM] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
[9/10/2019 9:23:04 PM] Host initialized (883ms)
[9/10/2019 9:23:04 PM] Host started (908ms)
[9/10/2019 9:23:04 PM] Job host started
[9/10/2019 9:23:04 PM] The following 2 functions are in error:
[9/10/2019 9:23:04 PM] CloudIAM_GM_CreateGroup: The binding type(s) 'serviceBusTrigger' are not registered. Please ensure the type is correct and the binding extension is installed.
[9/10/2019 9:23:04 PM] TestFxnEventHubTrigger: The binding type(s) 'eventHubTrigger' are not registered. Please ensure the type is correct and the binding extension is installed.
[9/10/2019 9:23:04 PM]
Hosting environment: Production
Content root path: c:\WORK\IAM\TestFunctions
Now listening on: http://0.0.0.0:7071
Application started. Press Ctrl+C to shut down.
[9/10/2019 9:23:04 PM] Debugger listening on ws://127.0.0.1:9229/afcb4a46-18ae-42fb-b9ac-3901a4720a6a
[9/10/2019 9:23:04 PM] For help see https://nodejs.org/en/docs/inspector
[9/10/2019 9:23:04 PM] Worker a2ec9396-3175-4256-94b3-77eb2acb8e6f connecting on 127.0.0.1:2227
[9/10/2019 9:23:10 PM] Host lock lease acquired by instance ID '000000000000000000000000B5B1FDED'.

@Deepak-Babu
Copy link
Author

@soninaren I have provided the information you requested.

@soninaren
Copy link
Member

Can you delete this folder and try again?
C:\Users....\AppData\Local\Temp\Functions\ExtensionBundles

@Deepak-Babu
Copy link
Author

looks like that worked. I'll check if the function triggers and update this issue

@Azure Azure locked as resolved and limited conversation to collaborators Dec 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants