genkit icon indicating copy to clipboard operation
genkit copied to clipboard

fix(go/genkit): expose detailed 4xx errors in googlegenai plugin

Open ihan211 opened this issue 7 months ago • 0 comments

  • Added log.Printf and fmt.Errorf in jokesFlow to log detailed errors.
  • Used an invalid API key to test error handling.
  • Updated context handling for graceful shutdown.

Tested with an invalid API key, producing: Generate error: Error 400, Message: API key not valid...

Checklist (if applicable):

  • [X] PR title is following https://www.conventionalcommits.org/en/v1.0.0/
  • [X] Tested (manually, unit tested, etc.)
  • [ ] Docs updated (updated docs or a docs bug required)

ihan211 avatar May 01 '25 21:05 ihan211