TypeError: 'NoneType' object is not subscriptable
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
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
- Đọ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 InternLM/MindSearch
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
InternLM/MindSearch#326 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
InternLM/MindSearch#315 ·
-
问答只回复一次,没有完整推理搜索回复Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
InternLM/MindSearch#312 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
InternLM/MindSearch#311 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
InternLM/MindSearch#310 ·
Tất cả issue của InternLM/MindSearch
Issue tương tự
-
area/frontend good first issue topic/intents
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
aws-samples/sample-collaborative-ai-dlc#1049 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cvss-severity:high devguard l3montree-cybersecurity/.../devguard-documentation pkg:oci/devguard-documen...ch=amd64&tag=main-amd64 risk:low state:open
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
l3montree-dev/devguard-documentation#396 · 1 bình luận ·
-
enhancement status/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
WhiteBr1ck/agy-powertools#361 ·
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 88/100
avniproject/avni-webapp#1861 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
avniproject/avni-client#2268 ·