Ollama integration cant connect to server

I cant get HA to connect to my Ollama server… I get this error;

Logger: homeassistant.components.ollama.config_flow
Källa: components/ollama/config_flow.py:99
integration: Ollama (dokumentation, ärenden)
Inträffade först: 14:30:36 (7 händelser)
Senast loggade: 14:49:17

Unexpected exception

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/ollama/config_flow.py”, line 99, in async_step_user response = await self.client.list() ^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/ollama/_client.py”, line 895, in list return response.json() ^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/httpx/_models.py”, line 766, in json return jsonlib.loads(self.content, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/json/init.py”, line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/json/decoder.py”, line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/json/decoder.py”, line 355, in raw_decode raise JSONDecodeError(“Expecting value”, s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

the URL works fins in an browser in the same network… whats wrong?

Hey! Happy to work through this on the ollama python repo: GitHub - ollama/ollama-python: Ollama Python library.

Quickly though - might be a compatibility issue with python version and HA