aws-samples / bedrock-claude-chat

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

Potential API Bug #246

Open dezhouc2 opened 5 months ago

dezhouc2 commented 5 months ago

knowledge database API

** I got a knowledge database API got with 403 {"message":"Forbidden"}. I have check endpoint restriction, header and payload respectively and still got the bug. Would you mind if you can help me out please? My apology if the issue format is in a mess.

Screenshot 2024-04-15 113738

Screenshot 2024-04-15 114140

statefb commented 5 months ago

@dezhouc2 Thank you for reporting the bug. Could you check whether the API info shown in bedrock claude chat indicates the same values as the values shown in AWS management console?

dezhouc2 commented 5 months ago

Would you mind if you can be a bit more specific? Is there a jupyternote book to demonstrate the interaction with amazon bedrock knowledge database using API as above? thank you

statefb commented 5 months ago

Currently we don't have it. I'd just like to know whether the settings shown in bedrock-claude-chat and management console are the same or not because I cannot reproduce the issue.

dezhouc2 commented 5 months ago

Currently we don't have it. I'd just like to know whether the settings shown in bedrock-claude-chat and management console are the same or not because I cannot reproduce the issue.

Thanks for quick response. I apology for my confusion. What settings within bedrock-claude-chat? For each bot console, I have its own API Endpoint and API key respectively generating from bot console. How this relates to management console?(May you be more specific?) I have google a lot and still hard-stuck.

dezhouc2 commented 5 months ago

Hi t

@dezhouc2 Thank you for reporting the bug. Could you check whether the API info shown in bedrock claude chat indicates the same values as the values shown in AWS management console?

Yes, it's the same. However, I still got 403 bug while implementing API.

Screenshot 2024-04-24 175850

ID in the above image matches my knowledge database URL

statefb commented 5 months ago
dezhouc2 commented 5 months ago
  • Could you check the api key value is the same as the one can be fetched from management console (API Gateway)?
  • Or you can check debug logs (cloudwatch logs)

I have checked api key value which is the same from API Gateway. I also check cloudwatch but do not find anything useful. Thank you again for your response