firebase / genkit

An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop, integrate, and test AI features with observability and evaluations. Genkit works with various models and platforms.
Apache License 2.0
812 stars 122 forks source link

[Tooling] `genkit start` won't attach to Firebase Emulator Suite #590

Closed dario-digregorio closed 4 months ago

dario-digregorio commented 4 months ago

Describe the bug I followed the Genkit Emulator guide but can't seem to get it running. When ever I try to attach genkit to the emulator I only get Error: Code failed to load, please check log messages above. without any more output.

I will try to create a minimal reproducible repo when I have more time.

To Reproduce Steps to reproduce the behavior:

  1. Run GENKIT_ENV=dev firebase emulators:start --inspect-functions
  2. Run genkit start --attach http://localhost:5001 --port 4001
  3. See error

Expected behavior That genkit attaches to the emulator or describes what the actual error is.

Desktop (please complete the following information):

dario-digregorio commented 4 months ago

Nevermind I was using the wrong attach uri. In my case it is http://localhost:3100 like in the documentation. I think the docs should mention that genkit needs to attach to the Reflection API port from firebase to not confuse which address is expected. I will close this.