FirebaseExtended / FirebaseExtended/solution-data-connect-movies

Recommender tool calling doesn't use DataConnect Emulator

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
18
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.