Skip to content

Recommender tool calling doesn't use DataConnect Emulator #3

@mickeywu

Description

@mickeywu

Hello, I was able to get the project up and running locally with the DataConnect Emulator per instructions with the seeded data.

Everything loads properly (eg. homepage) but when attempting to use the Recommender, it will fail when it Genkit attempts to do any tool calling:

GET /recommender 200 in 45ms
[2025-07-26T20:54:46.521Z]  @firebase/data-connect: DataConnect (11.10.0): Error while performing request: {"error":{"code":404,"message":"Resource \"projects/xyz/locations/northamerica-northeast1/services/app\" was not found","status":"NOT_FOUND","details":[{"@type":"type.googleapis.com/google.rpc.ResourceInfo","resourceName":"projects/xyz/locations/northamerica-northeast1/services/app"},{"@type":"type.googleapis.com/google.rpc.RequestInfo","requestId":"798801ea2a1e6651"}]}}
[dataConnectTools] error on tool call: [Error [DataConnectError]: {"error":{"code":404,"message":"Resource \"projects/xyz/locations/northamerica-northeast1/services/app\" was not found","status":"NOT_FOUND","details":[{"@type":"type.googleapis.com/google.rpc.ResourceInfo","resourceName":"projects/xyz/locations/northamerica-northeast1/services/app"},{"@type":"type.googleapis.com/google.rpc.RequestInfo","requestId":"798801ea2a1e6651"}]}}] {
  code: 'other',
  customData: undefined
}

It appears that when Genkit attempts to do tool calling using the generated DataConnect's tools.json, it doesn't go through the emulator and tries to call out the the actual service in Firebase.

After loading data into my actual Firebase instance, it worked fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions