denoland / denoland/deploy_feedback

Intermittent 5xx errors when downloading islands using AOT Build in Fresh 1.4.2

Open
#481 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

**Description:**
We've changed our project to use AOT builds + fresh version 1.4.2, this seemed to work fine but we are noticing a small window where islands downloads returns 5xx errors. We are using deno deploy you can see the errors on the attached screenshot below

image

```text
UnexpectedEof: unexpected EOF during chunk size line: readfile '/src/_fresh/chunk-HXXG4SMD.js.map'
at async Object.readFile (ext:deno_fs/30_fs.js:718:18)
at async https://denopkg.com/denoland/fresh@1.4.2/src/server/context.ts:186:29
at async Promise.all (index 156)
at async Function.fromManifest (https://denopkg.com/denoland/fresh@1.4.2/src/server/context.ts:184:11)
at async start (https://denopkg.com/denoland/fresh@1.4.2/src/server/mod.ts:113:15)
at async file:///src/main.ts:15:1
````

it's important to notice that this error occurs to all islands. The setup of the AOT builds are exactly the same as explained [here](https://fresh.deno.dev/docs/concepts/ahead-of-time-builds)`deno task build + deployctl action`.

A total time of ~4minutes to stabilize

image

> A dashboard showing the number of 5xx status in the deployment window from edge perspective

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.