genkit icon indicating copy to clipboard operation
genkit copied to clipboard

[Go] Improve errors throughout by adopting `GenkitError` and `UserFacingError`

Open apascal07 opened this issue 8 months ago • 0 comments

Describe the bug Right now, we just return errors (sometimes HTTPError) throughout Genkit Go which lacks the expected status codes, no breakdown of user vs. internal errors (INVALID_ARGUMENT vs INTERNAL, etc), many cryptic errors coming straight from the plugin APIs. We also do not capture or propagate any stack trace because Go doesn't do this by default but this is very helpful for developers for libraries like this.

apascal07 avatar Mar 26 '25 15:03 apascal07