Skip to content

Commit fef9b73

Browse files
Fix error tracker URL to point to the Python SDK repo (#1462)
## Summary The "unable to parse response" fallback error now links to the `databricks-sdk-py` issue tracker instead of `databricks-sdk-go`. ## Why That message is only emitted by the Python SDK, but it hard-coded the Go tracker URL, so affected users filed Python issues against the Go repo. Recent reports there (#1703, #1709, #1710) were Python runs that landed in the wrong place for this reason. ## How is this tested? `tests/test_errors.py` passes; the three cases that asserted the old URL are updated. NO_CHANGELOG=true
1 parent d18e039 commit fef9b73

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

databricks/sdk/errors/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _unknown_error(response: requests.Response, debug_headers: bool = False) ->
4646
return (
4747
"This is likely a bug in the Databricks SDK for Python or the underlying "
4848
"API. Please report this issue with the following debugging information to the SDK issue tracker at "
49-
f"https://github.com/databricks/databricks-sdk-go/issues. Request log:```{request_log}```"
49+
f"https://github.com/databricks/databricks-sdk-py/issues. Request log:```{request_log}```"
5050
)
5151

5252

tests/test_errors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ class TestCase:
314314
want_message=(
315315
"unable to parse response. This is likely a bug in the Databricks SDK for Python or the underlying API. "
316316
"Please report this issue with the following debugging information to the SDK issue tracker at "
317-
"https://github.com/databricks/databricks-sdk-go/issues. Request log:```GET /api/2.0/service\n"
317+
"https://github.com/databricks/databricks-sdk-py/issues. Request log:```GET /api/2.0/service\n"
318318
"< 400 Bad Request\n"
319319
"< this is not a real response```"
320320
),
@@ -343,7 +343,7 @@ class TestCase:
343343
response_body=json.dumps("This is JSON but not a dictionary"),
344344
),
345345
want_err_type=errors.NotFound,
346-
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"```',
346+
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"```',
347347
),
348348
TestCase(
349349
name="unable_to_parse_response3",
@@ -353,7 +353,7 @@ class TestCase:
353353
response_body=b"\x80",
354354
),
355355
want_err_type=errors.NotFound,
356-
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< �```",
356+
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< �```",
357357
),
358358
]
359359

0 commit comments

Comments
 (0)