Skip to content

[ISSUE] serving_endpoints.patch bug #535

@ppiotrow

Description

@ppiotrow

Description
Please verify serving_endpoints.patch implementation. It's not consistent with reality.
API contact has no root level tags property
Screenshot 2024-02-08 at 17 01 43
But it's present in the actual response
Screenshot 2024-02-08 at 17 03 07

File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/databricks/sdk/service/serving.py:271, in EndpointTag.from_dict(cls, d)
    269 @classmethod
    270 def from_dict(cls, d: Dict[str, any]) -> 'EndpointTag':
--> 271     return cls(key=d.get('key', None), value=d.get('value', None))

AttributeError: 'str' object has no attribute 'get'

Looks like the code should first retrieve "tags" from response

res = self._api.do('PATCH', f'/api/2.0/serving-endpoints/{name}/tags', body=body, headers=headers)
return [EndpointTag.from_dict(v) for v in res]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions