Interactions API: Spanner UTF-8 error when generating Korean response after tool calls

Environment

  • Model: gemini-3-flash-preview

  • SDK: @google/genai (JavaScript/TypeScript)

  • API: Interactions API

Issue

After successfully executing function calls and sending results back via ai.interactions.create(), the API throws an internal Spanner database error when the model attempts to generate a response in Korean.

Error

BadRequestError: 400 {“error”:{“message”:“[original: spanner::Bad usage] New value is not valid UTF-8 for string column: Interactions.ResponseTruncatedText; at participant db88977682989677/g6332_1960988”,“code”:“invalid_request”}}

Context

  • User message was in Korean

  • Model successfully called multiple tools (function calls)

  • Tool results were sent back as JSON via ai.interactions.create() with previous_interaction_id

  • Error occurred when model tried to generate its final Korean response

Observations

  • The error references internal column Interactions.ResponseTruncatedText

  • Tool execution completed successfully before the error

  • Appears to happen when model generates non-ASCII (Korean) response text

  • Error is intermittent

Expected Behavior

Model should generate Korean response without internal database errors.

1 Like

same for me with hebrew…

for now, disable store work for me…

(i want the store…)

1 Like

Flagged to the team, will have someone take a look! Note with the holidays things will be a bit slower.

2 Likes

안녕하세요. 지난 2025년 6월부터 Vibe Coding으로 Gemini API를 활용해서 프로그램을 개발해 보려고 시도하고 있는데 내공이 부족해서 많은 어려움을 겪고 있습니다. 혹시 Gemini API활용에 대해서 한국어로 소통할수 있는 커뮤니티를 알고 계시면 소개 부탁합니다. 만약 없다면 한번 만들어 보면 어떨까 해서 응답 남겼습니다.

연락 부탁합니다.

1 Like

Thanks, @Logan_Kilpatrick looking forward to the fix!

1 Like

This should now be fixed, should not happen anymore, but please let us know if you encounter any issues.

1 Like

Thanks ya’ll! Confirming it’s fixed for me. @Ali_Cevik @Logan_Kilpatrick Happy New Year!