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

Cosmos DB Connection issue #992

Closed
ten-aco opened this issue Jul 6, 2024 · 1 comment
Closed

Cosmos DB Connection issue #992

ten-aco opened this issue Jul 6, 2024 · 1 comment

Comments

@ten-aco
Copy link

ten-aco commented Jul 6, 2024

I've trying to run the latest version locally, it keeps throwing CosmosDB error for chat history, have debugged and found out that .read() won't work.

Here is the line that stops working: (backend/history/cosmosdbservice.py)
try:
database_info = await self.database_client.read()
except:
return False, f"CosmosDB database {self.database_name} on account {self.cosmosdb_endpoint} not found"

try:
container_info = await self.container_client.read()
except:
return False, f"CosmosDB container {self.container_name} not found"

I've an earlier version works just fine, I've deployed the latest to Azure App Service, it works there as well. I think there is something not set up well in local.

Could you please suggest something to fix the issue?

@ten-aco
Copy link
Author

ten-aco commented Jul 8, 2024

It turns out it was related to SSL. I was able to fix with below commands.

cd /Applications/Python\ 3.12/
./Install\ Certificates.command

@ten-aco ten-aco closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant