Pool not released after (a specific) Puppeteer error
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
- Đình trệ
- Công nghệ
- javascript, node.js
- Lĩnh vực
- backend
Hướng nghiên cứu
Bắt đầu trong lib/pool.js, khoảng dòng 356, nơi issue cho biết worker phải được giải phóng sau một Puppeteer detached-frame error. Tái hiện hoặc theo dõi detached-frame failure và pool acquisition timeout tiếp theo; được xem là hoàn tất khi các requests bị lỗi giải phóng workers của chúng để các export requests về sau có thể lấy các entry khả dụng mà không cần khởi động lại server.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We are running the Highcharts export server on Heroku. At some point we get some Puppeteer detached frame errors. We are not sure why, maybe because of the specific chart configs being exported (to SVG). However, those export requests crashing isn't that big of a deal, but after those errors the worker pool seems to be exhausted (old workers are not released to the pool) and all subsequent requests crash with "Error encountered when acquiring an available entry". They keep crashing until we manually restart the export server.
So in detail, we first get two of these errors (we have a minWorker pool size of 2):
Request to export server not successful. code: 400, response: {"statusCode":400,"message":"[pool] In pool.postWork: Attempted to use detached Frame 'B3381E6334D5B8B0CADB3E9197D43969'."}
After which all subsequent requests crash with:
Request to export server not successful. code: 400, response: {"statusCode":400,"message":"[pool] In pool.postWork: For request with ID e0b3bd5f9ec04233ae22320e5ab5f370 - Error encountered when acquiring an available entry: 5001.070848ms."}
Looking at the code in pool.js, the worker should be released after the first error, but for some reason it doesn't and we can't acquire any new workers afterwards. So we end up with a running export server process with no workers in the pool at all, which seems pretty useless. Only way to fix this is to (manually) restart the process.
Any help with this would be appreciated!
- Ngôn ngữ chính
- JavaScript
- Star
- 368
- Fork
- 265
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không 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 highcharts/node-export-server
-
Update Puppeteer to version 25.11.0+ to allow ARM64 linux images to run node-export-serverCó thể đã có người làm @daniatic đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
highcharts/node-export-server#686 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
highcharts/node-export-server#680 · 1 bình luận ·
-
How to get a response statusĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
highcharts/node-export-server#679 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
highcharts/node-export-server#678 ·
-
Not working on s390xĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
highcharts/node-export-server#676 ·
Tất cả issue của highcharts/node-export-server
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
factory-active factory-automatic harness/claude-code task-identify-harness-labels-done task-identify-issue-type-done
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
vercel/ai#22549 · 1 bình luận ·
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 62/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 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
zmo2s/agent-toolbox#23 ·