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

Extension not interacting in dashboard. #13

Open
justin-fell-acn opened this issue May 2, 2024 · 6 comments
Open

Extension not interacting in dashboard. #13

justin-fell-acn opened this issue May 2, 2024 · 6 comments

Comments

@justin-fell-acn
Copy link

Hello! This project is awesome, and I really appreciate you sharing your path to incorporating gemini in looker. I am having an issue where I cannot interact with the extension when I have it in my dashboard. Is there any sort of additional setup I need to do with Gemini + Vertex AI in GCP? Feel like I'm so close to having this working but stuck here, let me know if you had this issue! Thanks!
Screenshot 2024-05-02 110027

@alexanderwhatley
Copy link

Exact same issue here.

@LukaFontanilla
Copy link
Collaborator

If the Generate button remains greyed out, that means the Websocket Service (used for the Looker to Vertex AI connection ) is not able to connect.

For developing locally, please make sure the websocket server is running first then open up the browser console to see what errors are displayed.

For a production deployment, please ensure the websocket server was successfully deployed to Cloud Run and is open to public traffic.

It's likely a configuration somewhere on the websocket server, given that the Extension Tile loads. On the backend deployment there should be 2 areas to customize:

  • looker.ini: for Looker API configuration. ini file header should be the host name of your instance (ie. mycompany.cloud.looker.com -> header should be mycompany).
  • terraform/variables.tf: there are example defaults configured here, these should be replaced with those for your environment prior to deploying the backend.

@alexanderwhatley
Copy link

alexanderwhatley commented May 13, 2024

Hi @LukaFontanilla I'm not sure that actually solves the issue at hand. Looking at the code, it appears that the "Generate" button is disabled if the socket connection is not set -

<button className='button' style={{lineHeight:'20px', padding:'6px 16px'}} disabled={loading || !socket.connected} onClick={() => {
.

Looking at the code that sets the socket connection, in production it is set to be the "WEBSOCKET_SERVICE" environment variable:

const URL = process.env.NODE_ENV === 'production' ? process.env.WEBSOCKET_SERVICE!
. However, this is an optional environment variable according to the README, and the README never calls out the purpose of this environment variable.

Can you please let me know if I'm missing something?

@LukaFontanilla
Copy link
Collaborator

@alexanderwhatley the WEBSOCKET_SERVICE env variable is required. The optional variables are those for the export options like Slack and Gchat (we can make this more clear).

On the frontend side there are two places where the WEBSOCKET_SERVICE url needs to be set.

  • in the .env file in the root directory (as mentioned above)
  • in the LookML Project Manifest file, replacing the YOUR_CLOUD_RUN_URL with the URL for the deployed Cloud Run service. This is because the extension requires any external API url called in the Frontend to be allowlisted.

@alexanderwhatley
Copy link

@LukaFontanilla understood, but it is never specified that it is required, nor is it specified what it is. Can you make those changes in the README?

@hitesh-goel
Copy link

hitesh-goel commented Sep 6, 2024

I am facing the same issue, while in my case i am able to click Generate button but it's stuck on this next page. For more context our looker instance is self hosted, so it's mycompany.looker.com instead of mycompany.cloud.looker.com as mentioned in document. is this somehow related? Thanks

image

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

4 participants