BUG: Silent Exceptions in Backend Initialization Are Not Logged

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

@dolliecoder đang làm issue này rồi.

Từ ngày 3/2/2026.

  • #263 của @dolliecoder — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend, observability

Hướng nghiên cứu

Bắt đầu tại backend/app/database/falkor/code-graph-backend/api/graph.py và tìm từng except Exception: pass trong các đường dẫn khởi tạo và thiết lập. Xem xét phần thiết lập index và các thành phần dịch vụ xung quanh, sau đó mô phỏng một lỗi, chẳng hạn như lỗi tạo cơ sở dữ liệu hoặc index. Được xem là hoàn thành khi các lỗi này phát ra các thông báo logging Python mô tả rõ ràng kèm ngữ cảnh thay vì im lặng.

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

Mô tả

Is there an existing issue for this?
  • I have searched the existing issues
What happened?

📌 Issue Overview

There are several places in the backend where exceptions are being "swallowed" (ignored) by using except Exception: pass. This pattern is used, for example, when setting up database indices or initializing service components. When an error occurs within these try blocks, no message is printed or logged, and the backend continues running as if nothing is wrong—even though some features may break or behave unpredictably.

Location:
Most notably found in files under:

  • backend/app/database/falkor/code-graph-backend/api/graph.py

🔍 Steps to Reproduce

  1. Open the Python file in backend/app/database/falkor/code-graph-backend/ api/graph.py
  2. Search for except Exception: pass
  3. Trigger or simulate an error inside one of these try blocks (e.g., fail a database/index creation)
  4. Check the logs — notice that no error is recorded and the application continues running silently

🎯 Expected Behavior

All exceptions during initialization and setup should be logged using Python’s logging module with descriptive messages and context

🚨 Actual Behavior

Exceptions raised during backend initialization or setup are silently ignored due to except Exception: pass.
No logs or error messages are generated, allowing failures to go unnoticed.

📷 Screenshot

💡 Suggested Improvements

try:
self.g.create_node_range_index("File", "name", "ext")
except Exception as exc:
logging.error(f"Failed to create node range index: {exc}")

Record
  • I agree to follow this project's Code of Conduct
  • I want to work on this issue
Ngôn ngữ chính
Python
Star
103
Fork
143
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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 AOSSIE-Org/Devr.AI

Tất cả issue của AOSSIE-Org/Devr.AI

Issue tương tự

Thêm issue về Python

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.