aws-samples / bedrock-claude-chat

AWS-native chatbot using Bedrock + Claude (+Mistral)
MIT No Attribution
688 stars 232 forks source link

[BUG] Error when trying to publish the api #344

Closed PolicarpoDi closed 2 weeks ago

PolicarpoDi commented 3 weeks ago

Describe the bug

After I started using v1, I can't publish the API. I always get the error message (I'm using the us-east-1 region). Before, I was using v0 and the us-west-2 region, and I had managed to publish.

To Reproduce

Steps to reproduce the behavior:

  1. Create the bot with any configured parameter;
  2. In my bots, select the API Publish Settings option;
  3. Click Share;
  4. Define any parameter and click create.

The error will appear after a few minutes

Screenshots

Captura de tela 2024-06-05 164428

PolicarpoDi commented 3 weeks ago

Apparently the error is here according to the cloudwatch log

Captura de tela 2024-06-05 172138

PolicarpoDi commented 3 weeks ago

Error found

Fixed error. I just commented on the section below, where DbConfig is imported, but in which this function does not exist to be imported.

Captura de tela 2024-06-05 173501

After that, the api was published.

print

statefb commented 3 weeks ago

Thank you for reporting. Could you take a trouble to create a PR?

PolicarpoDi commented 3 weeks ago

Of course, I'll create it here.