status code 503 #252

Closed
opened 2026-02-15 16:29:13 -05:00 by yindo · 2 comments
Owner

Originally created by @ClayGminx on GitHub (Mar 30, 2025).

I tried structured-outputs-image.py, and I inputted a picture. Finally, occurred the following:

Traceback (most recent call last):
  File "d:\User\Desktop\ollama-work\structured-outputs-image.py", line 35, in <module>
    response = chat(
               ^^^^^
  File "C:\Users\joseph\AppData\Local\Programs\Python\Python312\Lib\site-packages\ollama\_client.py", line 333, in chat
    return self._request(
           ^^^^^^^^^^^^^^
  File "C:\Users\joseph\AppData\Local\Programs\Python\Python312\Lib\site-packages\ollama\_client.py", line 178, in _request
    return cls(**self._request_raw(*args, **kwargs).json())
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\joseph\AppData\Local\Programs\Python\Python312\Lib\site-packages\ollama\_client.py", line 122, in _request_raw
    raise ResponseError(e.response.text, e.response.status_code) from None
ollama._types.ResponseError:  (status code: 503)
Originally created by @ClayGminx on GitHub (Mar 30, 2025). I tried structured-outputs-image.py, and I inputted a picture. Finally, occurred the following: ``` Traceback (most recent call last): File "d:\User\Desktop\ollama-work\structured-outputs-image.py", line 35, in <module> response = chat( ^^^^^ File "C:\Users\joseph\AppData\Local\Programs\Python\Python312\Lib\site-packages\ollama\_client.py", line 333, in chat return self._request( ^^^^^^^^^^^^^^ File "C:\Users\joseph\AppData\Local\Programs\Python\Python312\Lib\site-packages\ollama\_client.py", line 178, in _request return cls(**self._request_raw(*args, **kwargs).json()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\joseph\AppData\Local\Programs\Python\Python312\Lib\site-packages\ollama\_client.py", line 122, in _request_raw raise ResponseError(e.response.text, e.response.status_code) from None ollama._types.ResponseError: (status code: 503) ```
yindo closed this issue 2026-02-15 16:29:13 -05:00
Author
Owner

@karanravindra commented on GitHub (Apr 14, 2025):

is ollama the service itself running on your computer / whatever the IP address is?

ollama-python is NOT a model running library, it is a library that simply talks to the ollama server

also 503 error code typically means it can't find the server, or the server is over loaded.

your computer might not have enough resources to run the model - though you would see your computer freeze before the error if this is the case

@karanravindra commented on GitHub (Apr 14, 2025): is ollama the service itself running on your computer / whatever the IP address is? ollama-python is NOT a model running library, it is a library that simply talks to the ollama server also 503 error code typically means it can't find the server, or the server is over loaded. your computer might not have enough resources to run the model - though you would see your computer freeze before the error if this is the case
Author
Owner

@ClayGminx commented on GitHub (Apr 14, 2025):

Hi, there. In fact, it's due to my network proxy. When I closed my network proxy, it worked.

@ClayGminx commented on GitHub (Apr 14, 2025): Hi, there. In fact, it's due to my network proxy. When I closed my network proxy, it worked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#252