bedrock-claude-chat icon indicating copy to clipboard operation
bedrock-claude-chat copied to clipboard

ValidationException when trying create a Bot

Open fsipa opened this issue 1 year ago • 4 comments

Use the Bedrock client to create a new Bot (with excel/csv file upload). The following error happened:

Knowledge Sync Error An error occurred while synchronizing Knowledge. Please check the following message: An error occurred (ValidationException) when calling the InvokeModel operation: Your account is not authorized to invoke this API operation. Bildschirmfoto 2024-07-23 um 16 25 21

Need your help here.

fsipa avatar Jul 23 '24 14:07 fsipa

Please enables cohere multilingual model on your region (doc) and try again.

statefb avatar Jul 24 '24 00:07 statefb

Thank you for your suggestion @statefb

The enabling of cohere multilingual took much more as expected.

Now i become following error message after the enabling:

An error occurred while synchronizing Knowledge. Please check the following message: An error occurred (AccessDeniedException) when calling the InvokeModel operation: You don't have access to the model with the specified model ID.

Did i miss something ? After enabling "Cohere multilingual" should i uninstall the "Bedrock Claude Chat" and reinstall it again? Bildschirmfoto 2024-07-31 um 20 43 44

Need your help here. Thanks

fsipa avatar Jul 31 '24 18:07 fsipa

No, you don't need to re-install, re-deploy. Could you double check if you've enabled the models on the same region as bedrockRegion in cdk.json? For more detail for bedrockRegion, please also see here.

statefb avatar Aug 01 '24 01:08 statefb

Thanks for your reply @statefb

Ouh la la. I checked it. We enabled the models in the eu-west-1 region and in cdk.json berockRegion= us-east-1.

So unfortunately, i need to clone the "Bedrock Claude Chat" again, edit the cdk.json file with "bedrockRegion": "eu-west-1" and then deploy again.

Right?

fsipa avatar Aug 01 '24 08:08 fsipa

@fsipa Yes, fix cdk.json and then deploy it again.

Yukinobu-Mine avatar Aug 23 '24 11:08 Yukinobu-Mine

This issue has been labeled as "stale" due to no response by the reporter within 1 month (and 14 days after last commented by someone). And it will be closed automatically 14 days later if not responded.

github-actions[bot] avatar Sep 07 '24 01:09 github-actions[bot]

This issue has been closed due to no response within 14 days after labeled as "stale", 14 days after last reopened, and 14 days after last commented.

github-actions[bot] avatar Sep 22 '24 01:09 github-actions[bot]