-
Notifications
You must be signed in to change notification settings - Fork 36
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
[ISSUE] cannot create grants: unexpected error handling request: invalid character '<' looking for beginning of value #752
Comments
Thanks for reporting this. I've followed up with the underlying team to respond with an appropriate error message rather than redirecting to the login page. However, there is still an underlying issue that will need to be resolved. Are you able to create other account-level resources with your provider? |
@zaxier |
I got pretty much the same error and @nkvuong my code snippet is:
|
@jesinity it is counter-intuitive, but you still needs to execute that via a workspace. Essentially, it will grant access to the metastore that is currently assigned to the workspace. |
Hello @nkvuong, I'm currently experiencing a similar issue while attempting to provide access to the metastore via an account. Although I've understood a solution to grant access via a workspace, I'm curious to understand the reasons behind Terraform's inability to accomplish the same access grant directly through an account |
Hello @mohitdungrani , can you help me understand how you authenticated from workspace while deploying unity cataloge with tf? |
Hello @sohailshaikh1920 To perform authentication via workspace, we need to pass the workspace URL inside the host parameter. For example: provider "databricks" { Reference: https://registry.terraform.io/providers/databricks/databricks/latest/docs#argument-reference |
Description
Bug faced when using
databricks_grants
resource using databricks terraform provider.Error: cannot create grants: unexpected error handling request: invalid character '<' looking for beginning of value. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:
Reproduction
Expected behavior
I expected it to deploy grants.
Is it a regression?
Unknown
Debug Logs
│
│ with module.uc_metastore.databricks_grants.this,
│ on modules/4_uc_metastore/_uc_metastore.tf line 9, in resource "databricks_grants" "this":
│ 9: resource "databricks_grants" "this" {
│
Other Information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: