Skip to content

[Bug] Power Apps Code Apps intermittently fail to load with UnexpectedError even for a brand-new blank app created from the official Vite template with no connections configured. #330

@admcfirebase-ai

Description

@admcfirebase-ai

Describe the bug

Power Apps Code Apps intermittently fail to load with UnexpectedError even for a brand-new blank app created from the official Vite template with no connections configured.

The Power Apps shell loads, but the inner iframe sometimes fails before app code runs. When this happens, the runtime package request under powerapps/appruntime/.../storageproxy/.../index.html returns 503.

Steps to Reproduce

  1. Follow the official npm quickstart for Power Apps Code Apps.
  2. Create a brand-new blank Vite app.
  3. Initialize it with npx power-apps init.
  4. Build and publish it with npx power-apps push.
  5. Open the generated play URL and refresh it multiple times.
  6. The app may work briefly, then fail with UnexpectedError.

Expected behavior

A newly published blank Code App should load reliably, especially when no connections are configured.

Actual behavior

The outer Power Apps shell loads, but the inner iframe intermittently fails with:

{"code":"UnexpectedError","message":"An unexpected error occurred."}

At the same time, the runtime package request returns 503.

Screenshots or Error Messages

Observed iframe error:

{"code":"UnexpectedError","message":"An unexpected error occurred."}

Observed network behavior:

  • storageproxy/.../index.html returns 503
  • Power Apps shell still loads
  • App launch metadata can still report the app as Ready / Published

Environment information

  • Framework, build tool or relevant package used: React + Vite + Power Apps Code Apps npm quickstart
  • Any connection/components: None for the blank repro app
  • SDK version used in repro: @microsoft/power-apps 1.1.1
  • Vite plugin version used in repro: @microsoft/power-apps-vite 1.0.2
  • CLI version used in repro: power-apps 0.10.0
  • Browsers tested: Chrome, Edge, Safari

Additional context

  • This reproduces not only with an existing app, but also with a brand-new blank app created from the official guide.
  • Because the blank app has no connections, this does not appear to be caused by connector configuration or app code.
  • The issue appears intermittent: the same app can work on one refresh and fail on the next.
  • I can provide HAR traces and request IDs privately if needed.

Metadata

Metadata

Assignees

No one assigned

    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