TypeError: 'NoneType' object is not subscriptable

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

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
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
ai, backend

Hướng nghiên cứu

Bắt đầu với app.py quanh sync_generator_wrapper và agent/mindsearch_agent.py tại stream_chat, _process_code và _generate_reference ở dòng 315. Theo dõi cách agent_return.nodes[node_name]['detail'] được tạo ra và tái hiện đường dẫn stream_chat bị lỗi. Được xem là hoàn tất khi ngoại lệ NoneType được báo cáo không còn khiến front end không phản hồi và có coverage hồi quy cho trường hợp bị lỗi.

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

Mô tả

This problem always occurs, and when it does, the front-end does not respond, and sometimes it is normal and sometimes it reports an error
How should I solve it !!!!

error messages:
2024-11-19 11:16:03,616 - app.py[line:72] - ERROR: Exception in sync_generator_wrapper: 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/home/model/ms/mindsearch/app.py", line 69, in sync_generator_wrapper
for response in agent.stream_chat(inputs):
File "/home/model/ms/mindsearch/agent/mindsearch_agent.py", line 237, in stream_chat
yield from self._process_code(agent_return, inner_history,
File "/home/model/ms/mindsearch/agent/mindsearch_agent.py", line 284, in _process_code
reference, references_url = self._generate_reference(
File "/home/model/ms/mindsearch/agent/mindsearch_agent.py", line 315, in _generate_reference
ref_results = agent_return.nodes[node_name]['detail'].actions[
TypeError: 'NoneType' object is not subscriptable

Ngôn ngữ chính
JavaScript
Star
7k
Fork
684
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

  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 InternLM/MindSearch

Tất cả issue của InternLM/MindSearch

Issue tương tự

Thêm issue về JavaScript

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.