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

[Bug] NoneType Error in Agent Status Check #368

Closed
3 tasks done
XiangZhang-zx opened this issue Dec 5, 2024 · 2 comments
Closed
3 tasks done

[Bug] NoneType Error in Agent Status Check #368

XiangZhang-zx opened this issue Dec 5, 2024 · 2 comments
Labels
bug report bugs that need to be fixed

Comments

@XiangZhang-zx
Copy link
Contributor

XiangZhang-zx commented Dec 5, 2024

Checked other resources

  • I added a very descriptive title to this issue.
  • I am sure the issue hasn't been already addressed by searching through https://github.com/agiresearch/AIOS/issues.
  • The usage issue is not resolved by updating to the latest stable version in the main branch.

Describe your current environment

macOS

Python 3.10.15

Describe the bug

Description

When running math_agent, the system throws 'NoneType' object has no attribute 'replace' error during agent status checks, despite successful agent download and cache.

Steps to Reproduce

  1. Run math_agent :
    run-agent --llm_name gpt-4o-mini --llm_backend openai --agent_name_or_path example/math_agent --task "Expand the expression (3x + 2)(4x - 5)" --aios_kernel_url http://localhost:8000
  2. Agent downloads and caches successfully
  3. During status check, error occurs

INFO: 127.0.0.1:65511 - "POST /agents/submit HTTP/1.1" 200 OK
Saved agent to cache: /Users/xiangzhang/Library/Caches/cerebrum/example/math_agent/0-0-1.agent
Agent example/math_agent (v0.0.1) downloaded and cached successfully.
Installing dependencies for agent. Writing to /Users/xiangzhang/Library/Caches/cerebrum/example/math_agent/0-0-1.log
'NoneType' object has no attribute 'replace'
INFO: 127.0.0.1:65512 - "GET /agents/420517/status HTTP/1.1" 200 OK

Expected Behavior

  • Agent status check should complete without NoneType errors
  • Status should be properly returned

Actual Behavior

  • NoneType error occurs during status check
  • Error repeats with subsequent status checks
Screenshot 2024-12-05 at 10 22 18 AM
@XiangZhang-zx XiangZhang-zx added the bug report bugs that need to be fixed label Dec 5, 2024
@dongyuanjushi
Copy link
Collaborator

Please check the latest version of Cerebrum with the following two PRs

to see whether it has been resolved.

@XiangZhang-zx
Copy link
Contributor Author

The issue has been resolved in my earlier PR. The latest PRs seem to add further improvements. I believe this issue can now be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report bugs that need to be fixed
Projects
None yet
Development

No branches or pull requests

2 participants