Skip to content

InvokeModelWithResponseStream: operation error Bedrock Runtime: InvokeModelWithResponseStream, https response error StatusCode: 400, RequestID: f14041ac-e761-43ea-bff1-d66e2c3cef14, ValidationException: messages: text content blocks must be non-empty #22364

@rushant001

Description

@rushant001

Description

InvokeModelWithResponseStream: operation error Bedrock Runtime: InvokeModelWithResponseStream, https response error StatusCode: 400, RequestID: f14041ac-e761-43ea-bff1-d66e2c3cef14, ValidationException: messages: text content blocks must be non-empty

Plugins

No response

OpenCode version

1.4.3

Steps to reproduce

  1. Configure OpenCode with AWS Bedrock as the provider
  2. Select claude-opus-4.6 as the model
  3. Start a conversation and interact normally (especially after tool calls or multi-turn exchanges)
  4. The error is thrown, typically after a few turns or when tool use is involved

Screenshot and/or share link

https://opncd.ai/share/u7CeAqyw

Operating System

macos 14.5 (23F79)

Terminal

iTerm2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions