Infinite error loop when using new netlify-cli (Netlify Database)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- deno, typescript, vite
- Lĩnh vực
- cli
Hướng nghiên cứu
Tái hiện vòng lặp bằng netlify dev với repository liblove được cung cấp và netlify.toml. Bắt đầu từ đường dẫn lỗi được hiển thị trong dist/utils/command-helpers.js và dist/commands/main.js, sau đó truy vết lỗi chưa được xử lý sau khi Deno CLI khởi động. Hoàn tất khi lệnh báo cáo lỗi một lần hoặc tự khôi phục, thay vì in lỗi vô hạn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
This is a new app, attempting to use the new Netlify Database, so I updated to version 26 of netlify-cli.
When running netlify dev, it builds the frontend app, launches the browser, then spews this in a tight loop thousands of times:
› Warning: Error: Netlify CLI has terminated unexpectedly.
›
› Please report this problem with reproduction steps at https://ntl.fyi/cli-error including the error details below.
›
This message repeats until I manage to kill the process.
Here is the log (with verbose --debug) just before the error starts repeating.
`netlify dev --debug` output
VITE v7.3.1 ready in 2566 ms
⠏ Waiting for #custom dev server to be ready on port 4200
[1G ➜ Local: http://localhost:4200/
➜ Network: use --host to expose
⠋ Waiting for #custom dev server to be ready on port 4200
✔ #custom dev server ready on port 4200
Build step duration: dev.command completed in 3630ms
2026-05-02T18:22:24.995Z router use '/' textParser
2026-05-02T18:22:24.997Z router:layer new '/'
2026-05-02T18:22:24.998Z router use '/' rawParser
2026-05-02T18:22:24.999Z router:layer new '/'
2026-05-02T18:22:24.999Z router use '/' formSubmissionHandler
2026-05-02T18:22:24.999Z router:layer new '/'
2026-05-02T18:22:24.999Z router use '/' loggingMiddleware
2026-05-02T18:22:24.999Z router:layer new '/'
2026-05-02T18:22:25.000Z router:route new '{*splat}'
2026-05-02T18:22:25.000Z router:layer new '{*splat}'
2026-05-02T18:22:25.000Z router:route acl {*splat}
2026-05-02T18:22:25.000Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route bind {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route checkout {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route connect {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route copy {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route delete {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route get {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route head {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route link {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route lock {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route m-search {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route merge {*splat}
2026-05-02T18:22:25.001Z router:layer new '/'
2026-05-02T18:22:25.001Z router:route mkactivity {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route mkcalendar {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route mkcol {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route move {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route notify {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route options {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route patch {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route post {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route propfind {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route proppatch {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route purge {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route put {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route query {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route rebind {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route report {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route search {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.002Z router:route source {*splat}
2026-05-02T18:22:25.002Z router:layer new '/'
2026-05-02T18:22:25.003Z router:route subscribe {*splat}
2026-05-02T18:22:25.003Z router:layer new '/'
2026-05-02T18:22:25.003Z router:route trace {*splat}
2026-05-02T18:22:25.003Z router:layer new '/'
2026-05-02T18:22:25.003Z router:route unbind {*splat}
2026-05-02T18:22:25.003Z router:layer new '/'
2026-05-02T18:22:25.003Z router:route unlink {*splat}
2026-05-02T18:22:25.003Z router:layer new '/'
2026-05-02T18:22:25.003Z router:route unlock {*splat}
2026-05-02T18:22:25.003Z router:layer new '/'
2026-05-02T18:22:25.003Z router:route unsubscribe {*splat}
2026-05-02T18:22:25.003Z router:layer new '/'
⬥ Functions server is listening on 53617
╭─────────────────────── ⬥ ────────────────────────╮
│ │
│ Local dev server ready: http://localhost:8888 │
│ │
╰───────────────────────────────────────────────────╯
Using global installation of Deno CLI
Local version of types is up-to-date: 69ea7663762a1800080069da
› Warning: Error: Netlify CLI has terminated unexpectedly.
›
› Please report this problem with reproduction steps at https://ntl.fyi/cli-error including the error details below.
›
› at toError (file:///Users/tcjr/Library/pnpm/global/5/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/netlify-cli/dist/utils/command-helpers.js:144:16)
› at logError (file:///Users/tcjr/Library/pnpm/global/5/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/netlify-cli/dist/utils/command-helpers.js:155:17)
› at process.<anonymous> (file:///Users/tcjr/Library/pnpm/global/5/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/netlify-cli/dist/commands/main.js:71:9)
› at process.emit (node:events:509:28)
› at process._fatalException (node:internal/process/execution:159:25)
› at throwUnhandledRejectionsMode (node:internal/process/promises:394:5)
› at processPromiseRejections (node:internal/process/promises:475:17)
› at processTicksAndRejections (node:internal/process/task_queues:105:32)
› Warning: Error: Netlify CLI has terminated unexpectedly.
›
Then, the above errors appear tens of thousands of times.
The deployed app is working. See it here: https://liblove.netlify.app/
Steps to reproduce
- Clone the repo:
https://github.com/tcjr/liblove.git cd liblovepnpm installnetlify dev
Configuration
netlify.toml contents:
[build]
command = "pnpm build"
publish = "dist"
functions = "netlify/functions"
# Redirects all traffic to index.html for SPAs like Ember
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
## Settings for Netlify Dev
## https://github.com/netlify/cli/blob/main/docs/netlify-dev.md#project-detection
[dev]
# We use the special value of '#custom' to let `netlify dev` know not to make
# any assumptions
framework = "#custom"
# `netlify dev` runs this command and waits for the targetPort below to be ready.
# In our Ember app, that happens when Vite does it's thing.
command = "pnpm run start:ember"
targetPort = 4200
## more info on configuring this file: https://ntl.fyi/file-based-build-config
Environment
System:
OS: macOS 15.7.4
CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Memory: 28.11 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.3.0 - /Users/tcjr/.volta/tools/image/node/24.3.0/bin/node
Yarn: 4.1.0 - /Users/tcjr/.volta/tools/image/yarn/4.1.0/bin/yarn
npm: 11.6.1 - /Users/tcjr/.volta/tools/image/npm/11.6.1/bin/npm
pnpm: 10.12.4 - /Users/tcjr/Library/pnpm/pnpm
bun: 1.3.3 - /Users/tcjr/.bun/bin/bun
Deno: 2.7.14 - /Users/tcjr/.deno/bin/deno
Watchman: 2025.11.10.00 - /usr/local/bin/watchman
- Ngôn ngữ chính
- TypeScript
- Star
- 1.9k
- Fork
- 480
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 66
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của netlify/cli
-
db-status.test fails if the database is disabledCó thể đã có người làm @paulleephp đã nhận 3 ngày trước. Đang mởtype: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`client-ip` is not an IP address when `x-forwarded-for` holds a list or a portCó thể đã có người làm @Dev-next-gen đã nhận 23 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`netlify dev` with `--cwd` from outside the project: every function 500s with "module is not defined in ES module scope" (`detectZisiBuilder` passes a string to `readPackageUp`)Có thể đã có người làm @bsplatt92 đã nhận 64 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: command: deploy area: docs type: feature
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
netlify/cli#1984 · 19 bình luận · 3 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
skillopt: success-reflect prompt omits the edit schema, so every success-only edit is droppedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Workspace secrets/constants containing "$" are corrupted when resolved in data source optionsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
mobile-next/mobile-mcp#526 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
e2e-failure ready-to-code
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 73/100
redhat-developer/rhdh-plugin-export-overlays#4470 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày