Skip to content

The detected filetype is PLAIN_TEXT, but the provided filetype was HTML #6873

@u35tpus

Description

@u35tpus

Describe the bug

goose generate the error below when generating Web UI:

Ran into this error: Server error: Failed to call Bedrock: ValidationException(ValidationException { message: Some("The detected filetype is PLAIN_TEXT, but the provided filetype was HTML."), meta: ErrorMetadata { code: Some("ValidationException"), message: Some("The detected filetype is PLAIN_TEXT, but the provided filetype was HTML."), extras: Some({"aws_request_id": "0b5ef2af-7f0f-4596-ba49-f4ed130e78b3"}) } }).

💡 Before filing, please check common issues:
https://block.github.io/goose/docs/troubleshooting

📦 To help us debug faster, attach your diagnostics zip if possible.
👉 How to capture it: https://block.github.io/goose/docs/troubleshooting/diagnostics-and-reporting/

A clear and concise description of what the bug is.


To Reproduce
Steps to reproduce the behavior:
Its difficult to say how to reproduce it. I can only say this thing happens when generating HTML code for sure. It can not be overcome other than by using another ai agent.


Expected behavior
A clear and concise description of what you expected to happen.

I would expect goose does not generate this error.


Screenshots
If applicable, add screenshots to help explain your problem.


Please provide the following information

  • OS & Arch: [e.g. Ubuntu 22.04 x86]

  • Interface: [UI / CLI]
    Goose CLI

  • Version: [e.g. v1.0.2]
    1.21.0

  • Extensions enabled: [e.g. Computer Controller, Figma]

developer, skills, todo, extensionmanager, filesystem

  • Provider & Model: [e.g. Google – gemini-1.5-pro]
    Bedrock

arn:aws:bedrock:us-east-1:889799412502:inference-profile/us.anthropic.claude-opus-4-5-20251101-v1:0


Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    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