Skip to content

[msteams] Channel fails to start on 2026.3.24 — pathToRegexp "Missing parameter name at index 5: /api*" #54852

@staroscott

Description

@staroscott

Description

After updating to OpenClaw 2026.3.24, the Microsoft Teams channel plugin fails to start with:

[msteams] [default] channel exited: Missing parameter name at index 5: /api*;
visit https://git.new/pathToRegexpError for info

The error repeats on every restart attempt. The channel never becomes healthy.

Root Cause

The bundled @microsoft/[email protected] uses Express 5 (^5.2.1) but contains a route pattern incompatible with path-to-regexp v8:

// @microsoft/[email protected] — plugins/http/plugin.js
this.express.use("/api*", express_1.default.json());

Express 5 / path-to-regexp v8 rejects the bare /api* wildcard syntax.

Fix Available

@microsoft/[email protected] (already on npm) changes /api* to /api.

Environment

  • OpenClaw: 2026.3.24
  • OS: macOS (arm64)
  • Node: v25.6.0

Workaround

2026.3.23 is unaffected (uses @microsoft/[email protected] — different SDK, no /api* pattern).

Suggested Fix

Bump @microsoft/teams.apps from 2.0.5 to 2.0.6 in the msteams extension dependencies.

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