Skip to main content

ERR_ABORT_HANDLER

Error Cause

This error can occur for various reasons. If it occurs during the invocation of a large model, try the following solutions:

  1. Ensure that requests using streaming output (Server-sent Event) include text/event-stream in the Accept header; otherwise, the request will time out after 60 seconds;
  2. Ensure that SSE (Server-sent Event) responses continuously return data to prevent the connection from being closed due to prolonged idleness (exceeding 60 seconds). You can maintain the connection by sending regular heartbeat signals via comment line (e.g., : ping) within the SSE connection. For details, refer to: Event Stream Format.

If this error occurs in the response of Cloud Run (function-based), you can try redeploying the hosted service to upgrade to the latest framework version with built-in SSE keep-alive.