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

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

Open
Vikas252 opened this issue Jun 19, 2023 · 1 comment

Comments

@Vikas252
Copy link

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
@Vikas252 Vikas252 changed the title The bindings for signalR is now getting assigned for the negotiate function The bindings for signalR is not getting assigned for the negotiate function Jun 19, 2023
@olivierbeauve
Copy link

Hi!

I have the same problem.. Did you find a solution ?

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants