Skip to content

[firebase_vertexai]: Invalid API enablement URL in error message #13542

@ryanwilson

Description

@ryanwilson

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Other

Which platforms are affected?

Android, iOS, macOS, Web, Windows

Description

The error message for Vertex AI in Firebase's API enablement is incorrect:

'https://console.firebase.google.com/$_projectId/genai '

the project ID appears to be parsed from this error:

The correct URL is https://console.firebase.google.com/project/PROJECT_ID/genai

Reproducing the issue

  1. Try to use Vertex AI in Firebase without enabling the API and get the error message.
  2. Try to navigate to the link provided, it will fail.

This was discovered in #13530 (comment)

Firebase Core version

2.31.0

Flutter Version

3.22.2

Relevant Log Output

DartError: The Vertex AI in Firebase SDK requires the Vertex AI in Firebase API (`firebasevertexai.googleapis.com`) to be enabled in your Firebase project. Enable this API by visiting the Firebase Console at https://console.firebase.google.com/projects/PROJECT_ID/genai and clicking "Get started". If you enabled this API recently, wait a few minutes for the action to propagate to our systems and then retry.

Flutter dependencies

N/A

Additional context and comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs AttentionThis issue needs maintainer attention.platform: allIssues / PRs which are for all platforms.plugin: vertexailabel issues for vertexai plugintype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions