[GH-ISSUE #7029] Ollama Pull Error #4457

Closed
opened 2026-04-12 15:23:05 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @573932914 on GitHub (Sep 29, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7029

What is the issue?

image

Is it wrong with my net?Or should the request code be updated?

Here is the Error message:

ResponseError Traceback (most recent call last)
Cell In[4], line 1
----> 1 ollama.pull('llama3')

File c:\Users\Float\AppData\Local\Programs\Python\Python311\Lib\site-packages\ollama_client.py:319, in Client.pull(self, model, insecure, stream)
308 def pull(
309 self,
310 model: str,
311 insecure: bool = False,
312 stream: bool = False,
313 ) -> Union[Mapping[str, Any], Iterator[Mapping[str, Any]]]:
314 """
315 Raises ResponseError if the request could not be fulfilled.
316
317 Returns ProgressResponse if stream is False, otherwise returns a ProgressResponse generator.
318 """
--> 319 return self._request_stream(
320 'POST',
321 '/api/pull',
322 json={
323 'name': model,
324 'insecure': insecure,
325 'stream': stream,
326 },
...
74 except httpx.HTTPStatusError as e:
---> 75 raise ResponseError(e.response.text, e.response.status_code) from None
77 return response

OS

Windows11

GPU

No response

CPU

No response

Ollama version

0.3.3

Originally created by @573932914 on GitHub (Sep 29, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7029 ### What is the issue? ![image](https://github.com/user-attachments/assets/5a078c8d-dfed-406a-945b-4f3860c9918e) Is it wrong with my net?Or should the request code be updated? Here is the Error message: ResponseError Traceback (most recent call last) Cell In[4], line 1 ----> 1 ollama.pull('llama3') File c:\Users\Float\AppData\Local\Programs\Python\Python311\Lib\site-packages\ollama_client.py:319, in Client.pull(self, model, insecure, stream) 308 def pull( 309 self, 310 model: str, 311 insecure: bool = False, 312 stream: bool = False, 313 ) -> Union[Mapping[str, Any], Iterator[Mapping[str, Any]]]: 314 """ 315 Raises ResponseError if the request could not be fulfilled. 316 317 Returns ProgressResponse if stream is False, otherwise returns a ProgressResponse generator. 318 """ --> 319 return self._request_stream( 320 'POST', 321 '/api/pull', 322 json={ 323 'name': model, 324 'insecure': insecure, 325 'stream': stream, 326 }, ... 74 except httpx.HTTPStatusError as e: ---> 75 raise ResponseError(e.response.text, e.response.status_code) from None 77 return response ### OS Windows11 ### GPU _No response_ ### CPU _No response_ ### Ollama version 0.3.3
GiteaMirror added the needs more infobug labels 2026-04-12 15:23:05 -05:00
Author
Owner

@rick-github commented on GitHub (Sep 29, 2024):

Output is truncated.  View as a scrollable element or open in a text editor. Adjust cell output options

We can't see the actual error message. But chances are it's just an intermittent network issue, wait a few minutes and try again. If it still doesn't work, post the full error.

<!-- gh-comment-id:2381220583 --> @rick-github commented on GitHub (Sep 29, 2024): ``` Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output options ``` We can't see the actual error message. But chances are it's just an intermittent network issue, wait a few minutes and try again. If it still doesn't work, post the full error.
Author
Owner

@573932914 commented on GitHub (Sep 29, 2024):

Output is truncated.  View as a scrollable element or open in a text editor. Adjust cell output options

We can't see the actual error message. But chances are it's just an intermittent network issue, wait a few minutes and try again. If it still doesn't work, post the full error.

Thanks for reply and here is the full error, although I think it is meaningless.
{
"name": "ResponseError",
"message": "",
"stack": "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mResponseError\u001b[0m Traceback (most recent call last)\nCell \u001b[1;32mIn[4], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[43mollama\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mpull\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mllama3\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m)\u001b[49m\n\nFile \u001b[1;32mc:\Users\Float\AppData\Local\Programs\Python\Python311\Lib\site-packages\ollama\_client.py:319\u001b[0m, in \u001b[0;36mClient.pull\u001b[1;34m(self, model, insecure, stream)\u001b[0m\n\u001b[0;32m 308\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mpull\u001b[39m(\n\u001b[0;32m 309\u001b[0m \u001b[38;5;28mself\u001b[39m,\n\u001b[0;32m 310\u001b[0m model: \u001b[38;5;28mstr\u001b[39m,\n\u001b[0;32m 311\u001b[0m insecure: \u001b[38;5;28mbool\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 312\u001b[0m stream: \u001b[38;5;28mbool\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 313\u001b[0m ) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m Union[Mapping[\u001b[38;5;28mstr\u001b[39m, Any], Iterator[Mapping[\u001b[38;5;28mstr\u001b[39m, Any]]]:\n\u001b[0;32m 314\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124;03m"""\u001b[39;00m\n\u001b[0;32m 315\u001b[0m \u001b[38;5;124;03m Raises ResponseError if the request could not be fulfilled.\u001b[39;00m\n\u001b[0;32m 316\u001b[0m \n\u001b[0;32m 317\u001b[0m \u001b[38;5;124;03m Returns ProgressResponse if stream is False, otherwise returns a ProgressResponse generator.\u001b[39;00m\n\u001b[0;32m 318\u001b[0m \u001b[38;5;124;03m """\u001b[39;00m\n\u001b[1;32m--> 319\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_request_stream\u001b[49m\u001b[43m(\u001b[49m\n\u001b[0;32m 320\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mPOST\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[0;32m 321\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43m/api/pull\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[0;32m 322\u001b[0m \u001b[43m \u001b[49m\u001b[43mjson\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43m{\u001b[49m\n\u001b[0;32m 323\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mname\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[43mmodel\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 324\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43minsecure\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[43minsecure\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 325\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mstream\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[43mstream\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 326\u001b[0m \u001b[43m \u001b[49m\u001b[43m}\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 327\u001b[0m \u001b[43m \u001b[49m\u001b[43mstream\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mstream\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 328\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\nFile \u001b[1;32mc:\Users\Float\AppData\Local\Programs\Python\Python311\Lib\site-packages\ollama\_client.py:99\u001b[0m, in \u001b[0;36mClient._request_stream\u001b[1;34m(self, stream, args, kwargs)\u001b[0m\n\u001b[0;32m 93\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21m_request_stream\u001b[39m(\n\u001b[0;32m 94\u001b[0m \u001b[38;5;28mself\u001b[39m,\n\u001b[0;32m 95\u001b[0m \u001b[38;5;241m\u001b[39margs,\n\u001b[0;32m 96\u001b[0m stream: \u001b[38;5;28mbool\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 97\u001b[0m \u001b[38;5;241m\u001b[39m\u001b[38;5;241m\u001b[39mkwargs,\n\u001b[0;32m 98\u001b[0m ) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m Union[Mapping[\u001b[38;5;28mstr\u001b[39m, Any], Iterator[Mapping[\u001b[38;5;28mstr\u001b[39m, Any]]]:\n\u001b[1;32m---> 99\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_stream(\u001b[38;5;241m*\u001b[39margs, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs) \u001b[38;5;28;01mif\u001b[39;00m stream \u001b[38;5;28;01melse\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_request\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\u001b[38;5;241m.\u001b[39mjson()\n\nFile \u001b[1;32mc:\Users\Float\AppData\Local\Programs\Python\Python311\Lib\site-packages\ollama\_client.py:75\u001b[0m, in \u001b[0;36mClient._request\u001b[1;34m(self, method, url, **kwargs)\u001b[0m\n\u001b[0;32m 73\u001b[0m response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[0;32m 74\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m httpx\u001b[38;5;241m.\u001b[39mHTTPStatusError \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[1;32m---> 75\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m ResponseError(e\u001b[38;5;241m.\u001b[39mresponse\u001b[38;5;241m.\u001b[39mtext, e\u001b[38;5;241m.\u001b[39mresponse\u001b[38;5;241m.\u001b[39mstatus_code) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m 77\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m response\n\n\u001b[1;31mResponseError\u001b[0m: "
}

<!-- gh-comment-id:2381252529 --> @573932914 commented on GitHub (Sep 29, 2024): > ``` > Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output options > ``` > > We can't see the actual error message. But chances are it's just an intermittent network issue, wait a few minutes and try again. If it still doesn't work, post the full error. Thanks for reply and here is the full error, although I think it is meaningless. { "name": "ResponseError", "message": "", "stack": "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mResponseError\u001b[0m Traceback (most recent call last)\nCell \u001b[1;32mIn[4], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[43mollama\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mpull\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mllama3\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m)\u001b[49m\n\nFile \u001b[1;32mc:\\Users\\Float\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\ollama\\_client.py:319\u001b[0m, in \u001b[0;36mClient.pull\u001b[1;34m(self, model, insecure, stream)\u001b[0m\n\u001b[0;32m 308\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mpull\u001b[39m(\n\u001b[0;32m 309\u001b[0m \u001b[38;5;28mself\u001b[39m,\n\u001b[0;32m 310\u001b[0m model: \u001b[38;5;28mstr\u001b[39m,\n\u001b[0;32m 311\u001b[0m insecure: \u001b[38;5;28mbool\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 312\u001b[0m stream: \u001b[38;5;28mbool\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 313\u001b[0m ) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m Union[Mapping[\u001b[38;5;28mstr\u001b[39m, Any], Iterator[Mapping[\u001b[38;5;28mstr\u001b[39m, Any]]]:\n\u001b[0;32m 314\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[0;32m 315\u001b[0m \u001b[38;5;124;03m Raises `ResponseError` if the request could not be fulfilled.\u001b[39;00m\n\u001b[0;32m 316\u001b[0m \n\u001b[0;32m 317\u001b[0m \u001b[38;5;124;03m Returns `ProgressResponse` if `stream` is `False`, otherwise returns a `ProgressResponse` generator.\u001b[39;00m\n\u001b[0;32m 318\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[1;32m--> 319\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_request_stream\u001b[49m\u001b[43m(\u001b[49m\n\u001b[0;32m 320\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mPOST\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[0;32m 321\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43m/api/pull\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[0;32m 322\u001b[0m \u001b[43m \u001b[49m\u001b[43mjson\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43m{\u001b[49m\n\u001b[0;32m 323\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mname\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[43mmodel\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 324\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43minsecure\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[43minsecure\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 325\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[38;5;124;43mstream\u001b[39;49m\u001b[38;5;124;43m'\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[43mstream\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 326\u001b[0m \u001b[43m \u001b[49m\u001b[43m}\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 327\u001b[0m \u001b[43m \u001b[49m\u001b[43mstream\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mstream\u001b[49m\u001b[43m,\u001b[49m\n\u001b[0;32m 328\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\nFile \u001b[1;32mc:\\Users\\Float\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\ollama\\_client.py:99\u001b[0m, in \u001b[0;36mClient._request_stream\u001b[1;34m(self, stream, *args, **kwargs)\u001b[0m\n\u001b[0;32m 93\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21m_request_stream\u001b[39m(\n\u001b[0;32m 94\u001b[0m \u001b[38;5;28mself\u001b[39m,\n\u001b[0;32m 95\u001b[0m \u001b[38;5;241m*\u001b[39margs,\n\u001b[0;32m 96\u001b[0m stream: \u001b[38;5;28mbool\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 97\u001b[0m \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs,\n\u001b[0;32m 98\u001b[0m ) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m Union[Mapping[\u001b[38;5;28mstr\u001b[39m, Any], Iterator[Mapping[\u001b[38;5;28mstr\u001b[39m, Any]]]:\n\u001b[1;32m---> 99\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_stream(\u001b[38;5;241m*\u001b[39margs, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs) \u001b[38;5;28;01mif\u001b[39;00m stream \u001b[38;5;28;01melse\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_request\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\u001b[38;5;241m.\u001b[39mjson()\n\nFile \u001b[1;32mc:\\Users\\Float\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\ollama\\_client.py:75\u001b[0m, in \u001b[0;36mClient._request\u001b[1;34m(self, method, url, **kwargs)\u001b[0m\n\u001b[0;32m 73\u001b[0m response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[0;32m 74\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m httpx\u001b[38;5;241m.\u001b[39mHTTPStatusError \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[1;32m---> 75\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m ResponseError(e\u001b[38;5;241m.\u001b[39mresponse\u001b[38;5;241m.\u001b[39mtext, e\u001b[38;5;241m.\u001b[39mresponse\u001b[38;5;241m.\u001b[39mstatus_code) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m 77\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m response\n\n\u001b[1;31mResponseError\u001b[0m: " }
Author
Owner

@pdevine commented on GitHub (Oct 1, 2024):

Hey @573932914 , the part that you cut/pasted is just the same as on your screenshot. Can you paste in what e.response.text and e.response.status_code are set to?

<!-- gh-comment-id:2387261784 --> @pdevine commented on GitHub (Oct 1, 2024): Hey @573932914 , the part that you cut/pasted is just the same as on your screenshot. Can you paste in what `e.response.text` and `e.response.status_code` are set to?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4457