From fd0218448eedec2919b55834eca970136f618612 Mon Sep 17 00:00:00 2001 From: Stijn Caerts Date: Thu, 4 Dec 2025 15:34:18 +0100 Subject: [PATCH 1/2] fix[stac_fastapi.core]: await request.body() coroutine --- stac_fastapi/core/stac_fastapi/core/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stac_fastapi/core/stac_fastapi/core/core.py b/stac_fastapi/core/stac_fastapi/core/core.py index 92f7aa0e..e099e3d4 100644 --- a/stac_fastapi/core/stac_fastapi/core/core.py +++ b/stac_fastapi/core/stac_fastapi/core/core.py @@ -759,7 +759,7 @@ async def post_search( body_limit = None try: - if request.method == "POST" and request.body(): + if request.method == "POST" and await request.body(): body_data = await request.json() body_limit = body_data.get("limit") except Exception: From 49bac98d5e87fc60c8286823ea7f41d75d1a8297 Mon Sep 17 00:00:00 2001 From: Stijn Caerts Date: Thu, 4 Dec 2025 16:41:50 +0100 Subject: [PATCH 2/2] update CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76af0668..36a73474 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed +- Fix unawaited coroutine in `stac_fastapi.core.core`. [#551](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/551) + ### Removed ### Updated