Skip to content

[ISSUE] Knowledge Assistant invocation failling #1711

Description

@cesar1226

I have asked a supervisor agent a question which was routed to the knowledge assistant. This returned

Traceback (most recent call last):
File "/databricks/mas.runfiles/_main/research/aroll/use_cases/mas/mas/tools/ka_tool.py", line 196, in _execute_stream
for stream_event, content_delta, error in process_stream(raw_iter, self.task):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/databricks/mas.runfiles/_main/research/aroll/use_cases/mas/mas/tools/agent_utils.py", line 217, in process_stream
yield from process_responses_stream(raw_iter)
File "/databricks/mas.runfiles/_main/research/aroll/use_cases/mas/mas/tools/agent_utils.py", line 130, in process_responses_stream
for event in raw_iter:
^^^^^^^^
File "/databricks/mas.runfiles/_main/research/aroll/use_cases/mas/mas/utils/obo_model_serving_client.py", line 60, in predict_stream
raw_response = ws.api_client.do(method="POST", path=path, raw=True, body=json_body)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/databricks/mas.runfiles/_main/agentbricks/common/python/utils/cp_workspace_client.py", line 186, in do
return super().do(
^^^^^^^^^^^
File "/databricks/mas.runfiles/.main_bin.venv/lib/python3.12/site-packages/databricks/sdk/core.py", line 91, in do
return self._api_client.do(
^^^^^^^^^^^^^^^^^^^^
File "/databricks/mas.runfiles/.main_bin.venv/lib/python3.12/site-packages/databricks/sdk/_base_client.py", line 199, in do
response = call(
^^^^^
File "/databricks/mas.runfiles/.main_bin.venv/lib/python3.12/site-packages/databricks/sdk/retries.py", line 60, in wrapper
raise err
File "/databricks/mas.runfiles/.main_bin.venv/lib/python3.12/site-packages/databricks/sdk/retries.py", line 39, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/databricks/mas.runfiles/.main_bin.venv/lib/python3.12/site-packages/databricks/sdk/_base_client.py", line 301, in _perform
raise error from None
databricks.sdk.errors.platform.TemporarilyUnavailable: 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:```POST /serving-endpoints/ka-xxxxxxxx-endpoint/invocations

{
"databricks_options": {
"conversation_id": "f69a1e46-1994-xxxxxxxxxxx",
"return_trace": true
},
"input": [
{
"content": "REDACTED",
"role": "user"
}
],
"stream": true
}
< 503 Service Unavailable
< Service Unavailable```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions