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]: Not able to connect to the gemini model on web UI #1748

Closed
1 task done
sartq333 opened this issue Feb 19, 2025 · 1 comment
Closed
1 task done

[Bug]: Not able to connect to the gemini model on web UI #1748

sartq333 opened this issue Feb 19, 2025 · 1 comment
Assignees

Comments

@sartq333
Copy link

sartq333 commented Feb 19, 2025

File Name

gemini/multimodal-live-api/websocket-demo-app/backend/main.py

What happened?

i'm trying out websocket demo app (https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/multimodal-live-api/websocket-demo-app), but this is the error which i'm getting (attached in the log output) while trying to click and connect to the gemini on web UI.
i also verified that my project name is same as that setup in script.js of frontend folder.
i also checked this and it returned my project name:

from google.auth import default

credentials, project_id = default()
print(f"Active Project: {project_id}")

the output of this code is project-xyz.

it might be possible that its a permission issue, but i'm not sure about which permission is disabled, as i checked on the GCP and the gemini api is already enabled.

pls let me know if there's something wrong which i'm doing. thanks in advance!

Relevant log output

.exceptions.ConnectionClosedError: received 1008 (policy violation) Request trace id: f7ae7f8ad1a75738, Project 'projects/       project-xyz ' not found or deleted.; then sent 1008 (policy violation) Request trace id: f7ae7f8ad1a75738, Project 'projects/    project-xyz ' not found or deleted.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sartq333
Copy link
Author

apparently issue was related to using service account. it got fixed. thanks anyway!

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

2 participants