Skip to content

Commit de4379b

Browse files
fix websockets API
1 parent 6d01f11 commit de4379b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

geoengine/workflow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import requests as req
2626
import rioxarray
2727
import websockets
28+
import websockets.asyncio.client
2829
import xarray as xr
2930
from owslib.util import Authentication, ResponseWrapper
3031
from owslib.wcs import WebCoverageService
@@ -622,7 +623,7 @@ async def raster_stream(
622623

623624
async with websockets.asyncio.client.connect(
624625
uri=self.__replace_http_with_ws(url),
625-
extra_headers=session.auth_header,
626+
additional_headers=session.auth_header,
626627
open_timeout=open_timeout,
627628
max_size=None,
628629
) as websocket:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies = [
2929
"rioxarray >=0.9.1, <0.20",
3030
"StrEnum >=0.4.6,<0.5", # TODO: use from stdlib when `python_requires = >=3.11`
3131
"vega >= 3.5,<4.2",
32-
"websockets >= 14.0,<16",
32+
"websockets >= 14.2,<16",
3333
"xarray >=0.19,<2025.8",
3434
"urllib3 >= 2.1, < 2.6",
3535
"pydantic >= 2.10.6, < 2.12",

0 commit comments

Comments
 (0)