diff --git a/sentinelhub/areas.py b/sentinelhub/areas.py index fdf75ff7..2580c599 100644 --- a/sentinelhub/areas.py +++ b/sentinelhub/areas.py @@ -712,7 +712,7 @@ def _parse_to_pair(parameter: T | tuple[T, T], allowed_types: tuple[type, ...], parameter = cast(T, parameter) if isinstance(parameter, allowed_types): - return parameter, parameter + return parameter, parameter # type: ignore[return-value] # mypy 1.6 fails to do type narrowing here raise ValueError( f"Parameter {param_name} must be a single instance or a pair, with allowed types {allowed_types}, but" diff --git a/sentinelhub/download/session.py b/sentinelhub/download/session.py index 6f167f7a..d73ea9b9 100644 --- a/sentinelhub/download/session.py +++ b/sentinelhub/download/session.py @@ -141,6 +141,7 @@ def _fetch_token(self, request: DownloadRequest) -> JsonDict: client_id=self.config.sh_client_id, client_secret=self.config.sh_client_secret, headers={**self.DEFAULT_HEADERS, **SHConstants.HEADERS}, + include_client_id=True, ) @staticmethod