cancel
Showing results for 
Search instead for 
Did you mean: 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results for 
Search instead for 
Did you mean: 

AI/BI Genie API

GabrielS
New Contributor II

Hi everyone,

I'm currently working on a project that implements a custom front end for Genie using the Genie API: https://docs.databricks.com/api/workspace/genie. So far, I’ve successfully built a working model that can send and receive messages.

However, about two days ago, I ran into an issue during testing. I was able to send and receive one message, but after that, every request returns the following error:

 

{
  "error": "Failed to get message status",
  "details": {
    "error_code": "PERMISSION_DENIED",
    "message": "You need \"Can View\" permission to perform this action",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.RequestInfo",
        "request_id": "******************************",
        "serving_data": ""
      }
    ]
  },
  "rawResponse": {
    "error_code": "PERMISSION_DENIED",
    "message": "You need \"Can View\" permission to perform this action",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.RequestInfo",
        "request_id": "******************************",
        "serving_data": ""
      }
    ]
  }
}

I haven't made any changes to the permissions, so I'm not sure why this started happening. Has anyone encountered a similar issue or know what might be causing this?

Any help is appreciated—thanks!

 

2 REPLIES 2

Walter_C
Databricks Employee
Databricks Employee

Is there any possibility that workspace admin could have removed this permission to you? If you check the permissions on your side do you see yourself with at least Can View?

GabrielS
New Contributor II

I spoke with my workspace administrator, and nothing has been modified since the error occurred. It would be unusual if the issue was related to permissions, considering we use a user token generated by the admin to make calls to the Genie APIs.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now