Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

The bindings for signalR is not getting assigned for the negotiate function #674

@Vikas252

Description

@Vikas252

This is a Bug Report

Expected function,json

{
  "disabled": false,
  "bindings": [
    {
      "type": "httpTrigger",
      "direction": "in",
      "name": "req",
      "route": "negotiate",
      "authLevel": "function",
      "methods": ["POST"]
    },
    {
      "type": "http",
      "direction": "out",
      "name": "res"
    },
    {
      "type": "signalRConnectionInfo",
      "name": "connectionInfo",
      "hubName": "serverless",
      "connectionStringSetting": "AzureSignalRConnectionString",
      "direction": "in"
    }
  ],
  "entryPoint": "negotiate",
  "scriptFile": "../dist/server.js"
}

Current function.json when deployed:

{
  "disabled": false,
  "bindings": [
    {
      "type": "httpTrigger",
      "direction": "in",
      "name": "req",
      "route": "negotiate",
      "authLevel": "function",
      "methods": ["POST"]
    },
    {
      "type": "http",
      "direction": "out",
      "name": "res"
    }
  ],
  "entryPoint": "negotiate",
  "scriptFile": "../dist/server.js"
}

serverless.yml file


negotiate:
    handler: dist/server.negotiate
    events:
      - http: true
        route: negotiate
        methods:
          - POST
    outputs:
      connectionInfo:
        type: signalRConnectionInfo
        name: connectionInfo
        hubName: serverless
        connectionStringSetting: AzureSignalRConnectionString
        direction: in

Description

  • What went wrong?
    Binding is not getting stored in the function.json
  • What did you expect should have happened?
    The above function.json that is expected should be a result
  • What was the config you used?
    Azure functions core tools - 4 version
    SignalR instance for the connection in serverless mode

Additional Data

  • Serverless Framework Version you're using:
Framework Core: 3.31.0 (local) 3.31.0 (global)
Plugin: 6.2.3
SDK: 4.3.2
  • Serverless Azure Plugin Version you're using:
  - serverless-azure-functions
  - serverless-plugin-scripts
  - serverless-plugin-common-excludes
  - serverless-plugin-include-dependencies
  - serverless-dotenv-plugin
  • Operating System: Win 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions