Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 422 Unprocessable Entity: Bot Sharing Fails Due to BotAliasModelactive_models Validation Error #682

Open
axelpina opened this issue Jan 9, 2025 · 0 comments

Comments

@axelpina
Copy link

axelpina commented Jan 9, 2025

🐞Describe the bug

When a bot is created and shared with another user, the recipient is redirected to the chat screen but cannot access the shared bot. Instead, a validation error related to BotAliasModelactive_models occurs, preventing proper access.

🔄 To Reproduce

Steps to reproduce the behavior:

  1. Create a new bot using the standard process.
  2. Enable the bot-sharing feature.
  3. Share the generated link with another user.
  4. As the second user, click the shared link.
  5. Observe the console for errors, specifically:
GET https://xxxxxxx.execute-api.us-east-1.amazonaws.com/bot/summary/01JFB0BNR4Z9HG7WQXXXXXXXX
[HTTP/1.1 422 Unprocessable Entity 1163ms]
  1. Expand the error details, which show:
1 validation error for BotAliasModelactive_models  
Input should be a valid dictionary or instance of ActiveModelsModel 
[type=model_type, input_value=ActiveModelsOutput(claude... amazon_nova_micro=True), input_type=ActiveModelsOutput]    
For further information visit https://errors.pydantic.dev/2.10/v/model_type

📷 Screenshots

N/A

📝 Additional context

INFO:app.repositories.custom_bot - Finding bots for user: b4d8c448-a041-70b5-49ef-XXXXXXX (The user who owns the bots)
INFO:app.repositories.custom_bot - Found all private bots: [BotMeta(id='01JH3J6AED68NZ28W3EP40VT9A', title='BOT 1', description='', create_time=1736360381410.0, last_used_time=1736360381410.0, is_pinned=False, is_public=False, owned=True, available=True, sync_status='FAILED', has_bedrock_knowledge_base=True), BotMeta(id='01JFB0BNR4Z9HG7WQVVY0B2HRC', title='BOT 2', description='', create_time=1734463072031.0, last_used_time=1734623879442.0, is_pinned=False, is_public=True, owned=True, available=True, sync_status='SUCCEEDED', has_bedrock_knowledge_base=True), BotMeta(id='01JE92WKWZSFHSF1KGMQ94BTKK', title='IFRS Knowledgebase', description='', create_time=1733324601285.0, last_used_time=1734558457621.0, is_pinned=False, is_public=True, owned=True, available=True, sync_status='SUCCEEDED', has_bedrock_knowledge_base=True), BotMeta(id='01JEV5YBCW6G7ATCCCJS66270Y', title='BOT NAME', description='', create_time=1733931617269.0, last_used_time=1733931617269.0, is_pinned=False, is_public=True, owned=True, available=True, sync_status='SUCCEEDED', has_bedrock_knowledge_base=True), BotMeta(id='01JEP3209C6J1299S9X566VE28', title='TITLE', description='BOT 3', create_time=1733760781159.0, last_used_time=1733861262387.0, is_pinned=False, is_public=False, owned=True, available=True, sync_status='SUCCEEDED', has_bedrock_knowledge_base=True), BotMeta(id='01JE9G6CMAWGBAPFMT2BJZG3KA', title='BOT 4', description='', create_time=1733338331080.0, last_used_time=1733778130241.0, is_pinned=False, is_public=False, owned=True, available=True, sync_status='SUCCEEDED', has_bedrock_knowledge_base=True), BotMeta(id='01JE6G6M8TWJY31ABPDZDGJ06Q', title='BOT 5', description='', create_time=1733237703820.0, last_used_time=1733776189133.0, is_pinned=False, is_public=True, owned=True, available=True, sync_status='SUCCEEDED', has_bedrock_knowledge_base=True)]

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

No branches or pull requests

1 participant