Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion databricks/sdk/errors/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _unknown_error(response: requests.Response, debug_headers: bool = False) ->
return (
"This is likely a bug in the Databricks SDK for Python or the underlying "
"API. Please report this issue with the following debugging information to the SDK issue tracker at "
f"https://github.com/databricks/databricks-sdk-go/issues. Request log:```{request_log}```"
f"https://github.com/databricks/databricks-sdk-py/issues. Request log:```{request_log}```"
)


Expand Down
6 changes: 3 additions & 3 deletions tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class TestCase:
want_message=(
"unable to parse response. This is likely a bug in the Databricks SDK for Python or the underlying 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:```GET /api/2.0/service\n"
"https://github.com/databricks/databricks-sdk-py/issues. Request log:```GET /api/2.0/service\n"
"< 400 Bad Request\n"
"< this is not a real response```"
),
Expand Down Expand Up @@ -343,7 +343,7 @@ class TestCase:
response_body=json.dumps("This is JSON but not a dictionary"),
),
want_err_type=errors.NotFound,
want_message='unable to parse response. This is likely a bug in the Databricks SDK for Python or the underlying 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:```GET /api/2.0/service\n< 404 Not Found\n< "This is JSON but not a dictionary"```',
want_message='unable to parse response. This is likely a bug in the Databricks SDK for Python or the underlying API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-py/issues. Request log:```GET /api/2.0/service\n< 404 Not Found\n< "This is JSON but not a dictionary"```',
),
TestCase(
name="unable_to_parse_response3",
Expand All @@ -353,7 +353,7 @@ class TestCase:
response_body=b"\x80",
),
want_err_type=errors.NotFound,
want_message="unable to parse response. This is likely a bug in the Databricks SDK for Python or the underlying 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:```GET /api/2.0/service\n< 404 Not Found\n< �```",
want_message="unable to parse response. This is likely a bug in the Databricks SDK for Python or the underlying API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-py/issues. Request log:```GET /api/2.0/service\n< 404 Not Found\n< �```",
),
]

Expand Down
Loading