We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f0780f commit 44c241aCopy full SHA for 44c241a
src/databricks/sql/backend/sea/utils/http_client.py
@@ -255,7 +255,10 @@ def _make_request(
255
) as response:
256
# Handle successful responses
257
if 200 <= response.status < 300:
258
- return response.json()
+ if response.data:
259
+ return json.loads(response.data.decode())
260
+ else:
261
+ return {}
262
263
error_message = f"SEA HTTP request failed with status {response.status}"
264
raise Exception(error_message)
0 commit comments