diff --git a/CHANGELOG.md b/CHANGELOG.md index d506c086d..da3fb69a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ - Added `setuptools` to dependencies for `python >= 3.12` ([#1721](https://github.com/neptune-ai/neptune-client/pull/1721)) - Fixed compatibility checks with pre-release versions ([#1730](https://github.com/neptune-ai/neptune-client/pull/1730)) - Added `Accept` and `Accept-Encoding` headers to protocol buffer requests ([#1736](https://github.com/neptune-ai/neptune-client/pull/1736)) +- Fixed default params for getAttributesWithPathsFilter ([#1740](https://github.com/neptune-ai/neptune-client/pull/1740)) ## neptune 1.10.0 diff --git a/src/neptune/internal/backends/hosted_neptune_backend.py b/src/neptune/internal/backends/hosted_neptune_backend.py index 4d1079123..9f776dbf5 100644 --- a/src/neptune/internal/backends/hosted_neptune_backend.py +++ b/src/neptune/internal/backends/hosted_neptune_backend.py @@ -1180,7 +1180,6 @@ def get_fields_with_paths_filter( "attributeQuery": { "attributePathsFilter": paths, }, - **DEFAULT_REQUEST_KWARGS, } try: @@ -1196,7 +1195,14 @@ def get_fields_with_paths_filter( data = ProtoAttributesDTO.FromString(result) return [Field.from_proto(field) for field in data.attributes] else: - data = self.leaderboard_client.api.getAttributesWithPathsFilter(**params).response().result + data = ( + self.leaderboard_client.api.getAttributesWithPathsFilter( + **params, + **DEFAULT_REQUEST_KWARGS, + ) + .response() + .result + ) return [Field.from_model(field) for field in data.attributes] except HTTPNotFound as e: raise ContainerUUIDNotFound(