agentops icon indicating copy to clipboard operation
agentops copied to clipboard

[Bug]: CLI “Session Replay” link returns 404 on Trace dashboard

Open srilaasya opened this issue 8 months ago • 0 comments

Contact Details

No response

📦 Package Version

0.4.7

🎞️ Framework Version

openai-agents 0.0.11

🔎 Describe the Bug

When viewing a trace in the AgentOpsAI dashboard, clicking on the "session replay" link or attempting to access session replay functionality returns a 404 error. The specific error message displayed is "Request failed with status code 404" with options to "Try Again" or "Go back to traces". Screenshot attached below.

Environment:

OS: macOS 13.6 Browser: Chrome (latest version) Backend: Python Flask API using OpenAI Agents SDK (ver: 0.0.11) AgentOpsAI Dashboard Hash: 4549ba30462663007e3438b36c8298d8a79cd7a8 AgentOpsAI SDK ver: 0.4.7

Code to reproduce:

agentops.init(API_KEY, auto_start_session=False)

agentops.start_session()
result = asyncio.run(Runner.run(research_agent, research_prompt))

Expected Behavior:

The trace details page should load successfully, displaying the complete session replay and all associated metadata for the selected trace.

Actual Behavior:

A modal appears with the error "Request failed with status code 404" and provides buttons to "Try Again" or "Go back to traces". No trace details are displayed.

Additional Information:

The issue occurs consistently for all traces, not just a specific one (any redirect through CLI fails) The trace IDs appear to be generated correctly and are visible in the trace list Backend logs show no errors during trace generation

Screenshot:

Image

🤝 Contribution

  • [ ] Yes, I'd be happy to submit a pull request with these changes.
  • [ ] I need some guidance on how to contribute.
  • [x] I'd prefer the AgentOps team to handle this update.

srilaasya avatar Apr 24 '25 20:04 srilaasya