Skip to content

AI model didn't return response - FirebaseError: AI: Error fetching from https://firebasevertexai.googleapis.com/.../gemini-2.5-flash:streamGenerateContent?alt=sse: signal is aborted without reason (AI/error) #9248

@anisabboud

Description

@anisabboud

Environment (if applicable)

Chrome 140

Firebase SDK Version

12.2.1

Firebase SDK Product(s)

AI

Project Tooling

"firebase": "^12.2.1" (latest)
"@angular": "^20.3.0" (latest)
(no AngularFire)

AI SDK initialized directly via ai = getAI(getApp(), { backend: new VertexAIBackend('global') });
and getGenerativeModel(this.ai, { ... })

Detailed Problem Description

Calling Gemini 2.5 Flash Vertex API streaming didn't return any response and failed after a few minutes with the message signal is aborted without reason (AI/error):

Image
FirebaseError: AI: Error fetching from https://firebasevertexai.googleapis.com/v1beta/projects/<projectId>/locations/global/publishers/google/models/gemini-2.5-flash:streamGenerateContent?alt=sse: signal is aborted without reason (AI/error)

Steps and code to reproduce issue

Transient error, encountered only once so far, maybe cold start issue, succeeded upon retry, so no reproduction.

Additional information

The request & response do show up in the Firebase AI Logic Monitoring dashboard, with status Successful and perhaps unusually low latency (5 seconds), but for some reason the response didn't reach the SDK/app.

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions