Malformed Input Request

Created on 14 December 2024, 4 months ago

I am receiving an error when trying to generate an image with Nova Canvas, Titan Image Generator, and Titan v2. I have only tried using the AI explorer.

I am able to successfully generate text, but images are not working for me. The error I receive is:

An error occurred
The following error occurred while processing your request:

Error invoking model response: Error executing "InvokeModel" on "https://bedrock-runtime.us-east-1.amazonaws.com/model/amazon.titan-image..."; AWS HTTP error: Client error: `POST https://bedrock-runtime.us-east-1.amazonaws.com/model/amazon.titan-image...` resulted in a `400 Bad Request` response: {"message":"Malformed input request, please reformat your input and try again."} ValidationException (client): Malformed input request, please reformat your input and try again. - {"message":"Malformed input request, please reformat your input and try again."}

Of the following exception type:

Drupal\ai\Exception\AiRequestErrorException

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jbuttler
  • I was able to test Stable Image Ultra, core, and sd3 and all return errors like this:

    An error occurred
    The following error occurred while processing your request:

    Error invoking model response: Error executing "InvokeModel" on "https://bedrock-runtime.us-west-2.amazonaws.com/model/stability.stable-i..."; AWS HTTP error: Client error: `POST https://bedrock-runtime.us-west-2.amazonaws.com/model/stability.stable-i...` resulted in a `400 Bad Request` response: {"message":"Malformed input request, please reformat your input and try again."} ValidationException (client): Malformed input request, please reformat your input and try again. - {"message":"Malformed input request, please reformat your input and try again."}

    Of the following exception type:

    Drupal\ai\Exception\AiRequestErrorException

  • While I cannot offer assistance coding the repair, I would be happy to provide some testing for a repair! Please let me know how I can assist with this project.

  • I am elevating this to major because all image models for Amazon titan are not working, and this affects the site functionality I am currently working on

    I have tried the current recommended versions of this module and other AI modules with no improvement. I cannot offer coding or API assistance, but I would be happy to contribute with testing and/or site usage for this and other AI modules.

    I greatly appreciate any assistance resolving this and bringing the image models to full functionality!

Production build 0.71.5 2024