Describe the bug
{"error": "The last_update_time provided in the session object '2025-07-01 18:59:42' is earlier than the update_time in the storage_session '2025-07-01 18:59:56'. Please check if it is a stale session."}
main.py
session_mysql_url = os.getenv('SESSION_MYSQL_URL')
app = get_fast_api_app(
agents_dir="./sql_agent",
session_service_uri=session_mysql_url,
allow_origins=["*"],
web=False,
trace_to_cloud=False,
)
if __name__ == "__main__":
import uvicorn
config = uvicorn.Config(
"main:app",
log_level="info",
port=8000,
reload=True,
# Disable Uvicorn's default logging config
log_config=None
)
server = uvicorn.Server(config)
server.run()
Desktop (please complete the following information):
- OS:
- Python version(python -V): 3.12
- ADK version(pip show google-adk): 1.4.1
- uvicorn: 0.34.3
Model Information: