Azure Function Binding Types - The binding type(s) 'webPubSubTrigger' were not found in the configured extension bundle

Adam Jeffery 1 Reputation point
2021-12-22T23:32:15.763+00:00

I'm trying to trigger an Azure Function when a Web PubSub message is published.

According to the example in this article, I should be able to use the following to trigger a function when a new message is sent to a specific hub...

   {  
     "disabled": false,  
     "bindings": [  
       {  
         "type": "webPubSubTrigger",  
         "direction": "in",  
         "name": "data",  
         "hub": "ABC",  
         "eventName": "message",  
         "eventType": "user"  
       }  
     ],  
     "scriptFile": "../dist/WebPubSubTrigger/index.js"  
   }  

However, I keep getting this error whenever I initialise the function app...

   The 'WebPubSubTrigger' function is in error: The binding type(s) 'webPubSubTrigger' were not found in the configured extension bundle. Please ensure the type is correct and the correct version of extension bundle is configured.  

Here's my extensionBundle config in host.json...

   "extensionBundle": {  
       "id": "Microsoft.Azure.Functions.ExtensionBundle",  
       "version": "[2.*, 3.0.0)"  
     }  

But this article does not have it listed as a supported binding type so I'm a little puzzled to say the least!

Can anyone point me in the right direction please?

I'm running my Functions in a NodeJS environment but that shouldn't make a difference I don think.

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
70 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,625 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,451 Reputation points
    2021-12-23T07:45:57.533+00:00

    @Adam Jeffery ,

    Thanks for reaching out to Q&A.

    The issue should occur in your local machine as well. Could you please try this folder and try again? The extension bundles will be redownloaded again.

    C:\Users....\AppData\Local\Temp\Functions\ExtensionBundles

    If your function app works perfectly in your local machine and the issue is only seen when it is deployed to Azure Function runtime, then please let me know.

    1 person found this answer helpful.

  2. Jialin Xin 1 Reputation point Microsoft Employee
    2022-01-11T06:16:39.013+00:00

    The bundle including Web PubSub function extension is still in progress. Please install explicitly with command func extensions install --package Microsoft.Azure.WebJobs.Extensions.WebPubSub for now, until function bundle release is complete.