Skip to content

[power-automate][Bug] list_connections builds an unresolvable PPAPI island URL for tenant default environments #295

Description

Plugin

power-automate

Plugin Version

2.1.0

Skill / Command

FlowAgent MCP tools (list_connections, pick_or_create_connection)

Bug Description

In a tenant default environment (environment name of the form Default-<tenantId>), list_connections fails with a network error. The tool derives the PPAPI island hostname as <envIdNoHyphens-first30>.<last2>.environment.api.powerplatform.com, but for the default environment that hostname does not exist in DNS (NXDOMAIN, verified with nslookup). pick_or_create_connection partially works (finds a connection name via its fallback) but reports status NotFound with the same underlying ENOTFOUND error.

Other tools against the same environment (list_flows, get_flow, create_flow, update_flow) work fine via api.flow.microsoft.com, and the legacy endpoint GET https://api.powerapps.com/providers/Microsoft.PowerApps/connections?api-version=2016-11-01&$filter=environment eq '<envName>' returns the connections correctly — a fallback to it would fix this.

Steps to Reproduce

  1. Use a tenant default environment (name of the form Default-<tenantId>).
  2. Call list_connections with that environment (with or without a connector filter; passing the bare GUID fails identically).
  3. Observe NetworkError ENOTFOUND for the derived island hostname.

Expected Behavior

Connections in the default environment are listed.

Actual Behavior

Flow API 0 NetworkError: Network request failed: ENOTFOUND (hostname: <envIdNoHyphens-first30>.<last2>.environment.api.powerplatform.com). This often means the environment ID produced an invalid PPAPI URL. The hostname is NXDOMAIN in public DNS.

Relevant Logs / Screenshots

{"code":"tool-error","message":"Flow API 0 NetworkError: Network request failed: ENOTFOUND (hostname: <redacted>.environment.api.powerplatform.com). This often means the environment ID produced an invalid PPAPI URL. Verify the environment ID is a valid GUID.","errorName":"FlowApiError"}

Environment

macOS 26.5.2 (25F84), Claude Code 2.1.218, Node v25.9.0


🤖 This issue was created using the /report-issue skill.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions