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

Closed as not planned

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

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 14, 2026
  2. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  3. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions