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
message="An error occurred inside the user-defined entrypoint function (decorated with @app.entrypoint). This is likely caused by the agent application, not AgentKit. Please contact agent administrator and check the Runtime logs.",
125
+
error_type="HTTPException",
126
+
)
127
+
returnJSONResponse(
128
+
status_code=status_code,
129
+
content=content,
130
+
headers=getattr(e, "headers", None),
131
+
)
78
132
exceptExceptionase:
79
-
logger.error("Invoke handler function failed: %s", e)
133
+
logger.exception("Invoke handler function failed: %s", e)
80
134
telemetry.trace_agent_finish("", e)
81
-
raisee
135
+
returnJSONResponse(
136
+
status_code=500,
137
+
content=_build_error_content(
138
+
message="An error occurred inside the user-defined entrypoint function (decorated with @app.entrypoint). This is likely caused by the agent application, not AgentKit. Please contact agent administrator and check the Runtime logs.",
0 commit comments