Skip to content

MS Teams channel crash-loop in 2026.3.24: Missing parameter name at index 5: /api* #55161

@enzoricciulli

Description

@enzoricciulli

Bug Report

Version: 2026.3.24 (cff6dc9)
Previous working version: 2026.3.23 (ccfeecb)
OS: macOS Darwin 24.6.0 (x64), Node.js v22.22.0

Description

The MS Teams channel crashes immediately on startup in 2026.3.24. The gateway starts, attempts to initialise the Teams provider on port 3978, then exits with a path-to-regexp error. It enters an auto-restart loop indefinitely.

Error

[msteams] starting provider (port 3978)
[gateway/channels/msteams] channel exited: Missing parameter name at index 5: /api*; visit https://git.new/pathToRegexpError for info
[gateway/channels/msteams] auto-restart attempt 1/10 in Xs

Steps to Reproduce

  1. Configure MS Teams channel with valid appId, appPassword, tenantId
  2. Set dmPolicy: open and webhook.path: /api/messages
  3. Start gateway on 2026.3.24
  4. Teams channel exits instantly with the above error

Root Cause (suspected)

path-to-regexp breaking change — newer versions removed support for the /api* wildcard syntax. The Teams channel adapter appears to register a route internally using that pattern.

Workaround

Downgrade to 2026.3.23:

npm install -g [email protected]

Impact

MS Teams channel is completely non-functional on 2026.3.24. All other channels (Telegram, Discord) unaffected.

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