.NET isolated 10.0: same Static Web App accepts one package and rejects later packages at 15s with no inner error

未关闭
#1,820 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
15/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp, react
领域
cloud, devops

调研方向

The failing deploys are listed by deployment ID in the issue, and the successful run 40399678514 is the baseline. The payload points to FunctionApi/host.json, FunctionApi/FunctionApi.csproj and the workflow file, which are unchanged between the good and bad commits, so the source change is in the Functions project code. The inner Functions host activation error can only be retrieved on the Static Web Apps service side, so this needs a maintainer or Azure support lookup. Done means the host exception for one of the failing deployment IDs is identified and reported.

由索引模型根据 Issue 内容生成。

描述

Describe the bug

A Static Web App with managed .NET isolated Functions accepts one package and rejects later packages of the same app. Oryx builds the API, functions.metadata is found, and the upload finishes. The deployment poll then fails in about 15 seconds. The only message in the GitHub Actions log is:

Status: Failed. Time: 15.3708987(s)
Deployment Failure Reason: Failed to deploy the Azure Functions.

The closing line that points at https://github.com/azure/static-web-apps/issues/ is the deploy action's standard footer. The log contains no inner exception.

This is the same app, the same workflow, and the same runtime as a deploy that succeeded on 26 October 2026. A failed deploy leaves the previous package in place, and that October 26 package is still the live site, so the managed Functions host for this resource is up. Please retrieve the inner activation error for the deployment IDs below. We cannot see it from GitHub or the Azure activity log.

To Reproduce

Public repository: https://github.com/D63H/SmartScoreboard

Workflow: https://github.com/D63H/SmartScoreboard/blob/master/.github/workflows/azure-static-web-apps-new.yml

staticwebapp.config.json: https://github.com/D63H/SmartScoreboard/blob/master/ReactApp/public/staticwebapp.config.json

The workflow uses Azure/static-web-apps-deploy@v1 on push to master, with app_location: ./ReactApp, api_location: ./FunctionApi, and output_location: build.

{
  "platform": {
    "apiRuntime": "dotnet-isolated:10.0"
  }
}

Between the successful commit 508569c4e5d6d94b704c00a35767c87e0b7cda31 and the latest failure 3bf0373e5b4b3bb6cb117fe458bf76931b2926a2, these files are identical: .github/workflows/azure-static-web-apps-new.yml, ReactApp/public/staticwebapp.config.json, FunctionApi/host.json, and FunctionApi/FunctionApi.csproj. The Functions project source did change. Each attempt still ends with the same generic host rejection.

Visible sequence on every failure:

  1. Oryx builds the React app and the Function API.
  2. Log line: Function Runtime Information. OS: windows, Functions Runtime: ~4, dotnetisolated version: 10.0
  3. Log line: Found functions.metadata file
  4. Upload completes: Finished Upload. Polling on deployment.
  5. One Status: InProgress poll, then Status: Failed at about 15 seconds.
Result GitHub Actions run Commit Deployment ID Poll
Succeeded https://github.com/D63H/SmartScoreboard/actions/runs/40399678514 508569c4e5d6d94b704c00a35767c87e0b7cda31 3e45b438-dd28-48f0-8fb7-2457fb26bc14 46.82s, 2026-10-26T20:57:10Z
Failed https://github.com/D63H/SmartScoreboard/actions/runs/41242254961 59adcc6da886cd469ebef03c95cea225644a5296 5d7f35fa-3974-4372-a8fd-3659e453ab94 15.51s, 2026-10-31T21:12:17Z
Failed https://github.com/D63H/SmartScoreboard/actions/runs/41243602219 ff8e69053b114dc6ec8f0bc61534e36c8bbeeb4c 79e38162-0d20-4d6d-bd73-86a20e1e9fe1 15.57s, 2026-10-31T21:29:18Z
Failed https://github.com/D63H/SmartScoreboard/actions/runs/41307859348 3bf0373e5b4b3bb6cb117fe458bf76931b2926a2 e06bbde8-298e-4f9a-b128-25e8353c1532 15.37s, 2026-11-01T12:46:47Z

Oryx version on the latest failure: 0.2.20260728.2.

Expected behavior

The deployment succeeds, as run 40399678514 did for this same app, or the failure reason includes the Functions host exception for that deployment ID.

Device info (if applicable):

  • SWA plan: Free
  • Region: East US 2
  • API runtime: managed dotnet-isolated:10.0 on Windows, Functions runtime ~4
  • Deploy client: GitHub Actions ubuntu-latest, Azure/static-web-apps-deploy@v1
  • No separate Function App. api_location is ./FunctionApi.

Additional context

This differs from the reports where an unchanged app stopped deploying entirely (#1761, #1749, #1751). Here the 26 October package deployed and is still served. Three later packages of the same app are rejected at the same point in the poll, with no diagnostic in the Actions log. The deployment IDs above are the ones that need a lookup on the Static Web Apps side.

主要语言
没有语言数据
星标
347
派生
68
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Azure/static-web-apps 的其他 Issue

查看 Azure/static-web-apps 的全部 Issue

相似的 Issue

更多 Cloud Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。