v0.31.1: POST /api/deploy/github answers 500 on pull_request events ("cannot pass more than 100 arguments to a function")

Đang mở
#6,096 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
3/5
Thời gian dự kiến
Nửa 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
Sôi nổi
Công nghệ
docker, github, postgresql, typescript
Lĩnh vực
api, backend, ci-cd, database

Hướng nghiên cứu

Start with the POST /api/deploy/github handler and the preview-deployment query it runs on pull_request events; the Postgres error "cannot pass more than 100 arguments to a function" points at a query that builds an oversized argument list, likely an IN (...) or ANY over pull request or application IDs. Confirm the failure by reproducing with a pull_request webhook payload against a database with many open pull requests. Done when the event returns 2xx with preview deployments disabled and the query stays under the argument limit.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
What happens

Since v0.31.1, each GitHub pull_request webhook event (opened, closed) to POST /api/deploy/github answers HTTP 500. The Dokploy log shows the Postgres error cannot pass more than 100 arguments to a function from the query of preview deployments. Push events still deploy normally.

Setup
  • Two Dokploy servers, both on v0.31.1 (self-hosted).
  • Server 1 had preview deployments enabled for 3 applications. Turning preview deployments off on all 3 did not stop the 500.
  • The connected repositories have many pull requests a day.
Expected

A pull_request event answers 2xx, also when no application uses preview deployments.

Steps to reproduce
  1. Connect a GitHub repository with many opened and closed pull requests to Dokploy v0.31.1.
  2. Open or close a pull request.
  3. In GitHub → Settings → Webhooks → Recent deliveries, the delivery to /api/deploy/github shows 500.
Related

#4256 (closed) was the same kind of error in v0.29.0.

Ngôn ngữ chính
TypeScript
Star
38.8k
Fork
3.2k
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
110

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Dokploy/dokploy

Tất cả issue của Dokploy/dokploy

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.