-
-
Notifications
You must be signed in to change notification settings - Fork 69.5k
MS Teams channel crash-loop in 2026.3.24: Missing parameter name at index 5: /api* #55161
Copy link
Copy link
Closed
Description
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
- Configure MS Teams channel with valid appId, appPassword, tenantId
- Set
dmPolicy: openandwebhook.path: /api/messages - Start gateway on 2026.3.24
- 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.