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

[ISSUE] Create Repo throws databricks.sdk.core.DatabricksError: There was an error performing the operation. Please try again or open a support ticket. #730

Open
RushabhNovelis opened this issue Aug 19, 2024 · 1 comment

Comments

@RushabhNovelis
Copy link

Description
w.repos.create(**) function is throwing an InternalError : databricks.sdk.errors.platform.InternalError: There was an error performing the operation. Please try again or open a support ticket.

Reproduction

created_repo_info = w.repos.create(url=REPO_URL,provider='github',path=f'/Repos/sp_id/repo_name')
print(created_repo_info.as_dict()

Expected behavior
databricks repo should be created if git_credential already exist with given git_provider and repo_info with detailed response should be returned.

Is it a regression?
It used to work sometime back. Now it has suddenly started giving error for 0.8.0 and 0.30.0 both.
from the trace logs it looks like something changed from api end.

Debug Logs

    created_repo_info = dbricks_client.repos.create(
  File "USER_PACKAGE_PATH\databricks\sdk\service\workspace.py", line 1633, in create
    res = self._api.do('POST', '/api/2.0/repos', body=body, headers=headers)
  File "USER_PACKAGE_PATH\databricks\sdk\core.py", line 157, in do
    response = retryable(self._perform)(method,
  File "USER_PACKAGE_PATH\databricks\sdk\retries.py", line 54, in wrapper
    raise err
  File "USER_PACKAGE_PATH\databricks\sdk\retries.py", line 33, in wrapper
    return func(*args, **kwargs)
  File "USER_PACKAGE_PATH\databricks\sdk\core.py", line 271, in _perform
    raise self._make_nicer_error(response=response, **payload) from None
databricks.sdk.errors.platform.InternalError: There was an error performing the operation. Please try again or open a support ticket.

Other Information

  • OS: Windows11
  • SDKVersion: 0.30.0

Additional context

@RushabhNovelis
Copy link
Author

It is working with a different workspace, Issues seems to be something else.

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