Error message does not contain details

I am using the Go library and it seems it is using gRPC internally.
cloud.google.com/go/vertexai/genai

I got the following error when using a fine-tuned model from Vertex.
The request contains what? What is the invalid argument?

rpc error: code = Invalid Argument desc = Request contains an invalid argument.

Without knowing what caused the issue, it is painfully difficult to debug.

Hi @seungduk,

That error typically pops up when something in your request is off like a missing prompt, a wrong model path, or the wrong kind of value being passed.

The Go SDK likely uses gRPC internally, so the error message doesn’t clearly say what went wrong.
You could try using the REST API instead it usually gives more helpful error messages. Or turn on debug logging to see the full request.

You can refer to the docs below for more details:
Google Gen AI SDK | Generative AI on Vertex AI | Google Cloud