Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not subscriptable #261

Open
hjs0808 opened this issue Nov 19, 2024 · 6 comments
Open

TypeError: 'NoneType' object is not subscriptable #261

hjs0808 opened this issue Nov 19, 2024 · 6 comments

Comments

@hjs0808
Copy link

hjs0808 commented Nov 19, 2024

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

@Harold-lkk
Copy link
Collaborator

please use latest version

@hjs0808
Copy link
Author

hjs0808 commented Nov 19, 2024

please use latest version

it works , thanks, but I have another question, the react web interface doesn't seem to be responding, What shall I do?

@hjs0808
Copy link
Author

hjs0808 commented Nov 19, 2024

please use latest version

streamlit is normal

@Harold-lkk
Copy link
Collaborator

image

@hjs0808
Copy link
Author

hjs0808 commented Nov 20, 2024

image
image

Thank you, it started working successfully, but there were two errors when i was use. Is this mistake serious? How should I solve this problem

@braisedpork1964
Copy link
Collaborator

Have you checked if there's any syntax error in the code block from the planner's response? Most errors above are caused by its coding capability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants