You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the AgentOps API key and implemented it in the local code. I was running the Agent in the ADK web ui Agent is running fine but the Agentops is throwing the error
π AgentOps: [agentops.InternalSpanProcessor] Error uploading logfile: Upload failed: 401
π€ Contribution
Yes, I'd be happy to submit a pull request with these changes.
I need some guidance on how to contribute.
I'd prefer the AgentOps team to handle this update.
We encountered the same 401 error but found a different root cause: Python on macOS had zero CA certificates loaded (ssl.create_default_context().cert_store_stats() returned all zeros), causing HTTPS authentication requests to fail. curl worked fine because it uses system certificates, but Python's SSL module had an empty certificate bundle. Setting SSL_CERT_FILE=/path/to/certifi/cacert.pem in our environment fixed it completely - authentication succeeded and traces uploaded without 401 errors.
This appears to be a separate issue from the async auth race condition described in PR #1270. Our case was a pure SSL/TLS certificate verification failure that happened before any authentication could complete. Common on macOS when Python is installed via homebrew/pyenv without the certificate installer script.
Activity
Lincyaw commentedon Oct 30, 2025
I encounter the same issue
Fix: Handle missing auth token gracefully in logfile upload - Resolves β¦
prabha-git commentedon Nov 7, 2025
We encountered the same 401 error but found a different root cause: Python on macOS had zero CA certificates loaded (
ssl.create_default_context().cert_store_stats()returned all zeros), causing HTTPS authentication requests to fail. curl worked fine because it uses system certificates, but Python's SSL module had an empty certificate bundle. SettingSSL_CERT_FILE=/path/to/certifi/cacert.pemin our environment fixed it completely - authentication succeeded and traces uploaded without 401 errors.This appears to be a separate issue from the async auth race condition described in PR #1270. Our case was a pure SSL/TLS certificate verification failure that happened before any authentication could complete. Common on macOS when Python is installed via homebrew/pyenv without the certificate installer script.
Kyle-McNulty commentedon Feb 4, 2026
Ran into the same issue above in February 2026. Setting the cert path at the beginning of main.py fixed it for me.