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
- Follow the official npm quickstart for Power Apps Code Apps.
- Create a brand-new blank Vite app.
- Initialize it with
npx power-apps init.
- Build and publish it with
npx power-apps push.
- Open the generated play URL and refresh it multiple times.
- 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.
Describe the bug
Power Apps Code Apps intermittently fail to load with
UnexpectedErroreven 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.htmlreturns503.Steps to Reproduce
npx power-apps init.npx power-apps push.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.htmlreturns503Ready/PublishedEnvironment information
@microsoft/power-apps1.1.1@microsoft/power-apps-vite1.0.2power-apps0.10.0Additional context