Mistral Readtimeout #920
Unanswered
Anshul-137
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I keep getting this error every time I use vanna and ollama mistral except for that one time when it worked but I haven't changed the code at all since then.
Failed to send telemetry event CollectionGetEvent: capture() takes 1 positional argument but 3 were given
Failed to send telemetry event CollectionGetEvent: capture() takes 1 positional argument but 3 were given
Failed to send telemetry event CollectionGetEvent: capture() takes 1 positional argument but 3 were given
Failed to send telemetry event CollectionQueryEvent: capture() takes 1 positional argument but 3 were given
Number of requested results 10 is greater than number of elements in index 2, updating n_results = 2
Failed to send telemetry event CollectionQueryEvent: capture() takes 1 positional argument but 3 were given
Failed to send telemetry event CollectionQueryEvent: capture() takes 1 positional argument but 3 were given
Traceback (most recent call last):
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpx_transports\default.py", line 101, in map_httpcore_exceptions
yield
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpx_transports\default.py", line 250, in handle_request
resp = self._pool.handle_request(req)
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpcore_sync\connection_pool.py", line 256, in handle_request
raise exc from None
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpcore_sync\connection_pool.py", line 236, in handle_request
response = connection.handle_request(
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpcore_sync\connection.py", line 103, in handle_request
return self._connection.handle_request(request)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpcore_sync\http11.py", line 136, in handle_request
raise exc
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpcore_sync\http11.py", line 106, in handle_request
) = self._receive_response_headers(**kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpcore_sync\http11.py", line 177, in _receive_response_headers
event = self._receive_event(timeout=timeout)
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpcore_sync\http11.py", line 217, in _receive_event
data = self._network_stream.read(
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpcore_backends\sync.py", line 126, in read
with map_exceptions(exc_map):
~~~~~~~~~~~~~~^^^^^^^^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 162, in exit
self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\flask\app.py", line 1536, in call
return self.wsgi_app(environ, start_response)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\flask\app.py", line 1514, in wsgi_app
response = self.handle_exception(e)
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\flask\app.py", line 1511, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\flask\app.py", line 919, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\flask\app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\flask\app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\vanna\flask_init_.py", line 138, in decorated
return f(*args, user=user, **kwargs)
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\vanna\flask_init_.py", line 335, in generate_sql
sql = vn.generate_sql(question=question, allow_llm_to_see_data=self.allow_llm_to_see_data)
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\vanna\base\base.py", line 136, in generate_sql
llm_response = self.submit_prompt(prompt, **kwargs)
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\vanna\ollama\ollama.py", line 95, in submit_prompt
response_dict = self.ollama_client.chat(model=self.model,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\ollama_client.py", line 342, in chat
return self._request(
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\ollama_client.py", line 180, in _request
return cls(**self._request_raw(*args, **kwargs).json())
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\ollama_client.py", line 120, in _request_raw
r = self._client.request(*args, **kwargs)
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpx_client.py", line 825, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpx_client.py", line 914, in send
response = self._send_handling_auth(
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpx_client.py", line 942, in _send_handling_auth
response = self._send_handling_redirects(
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpx_client.py", line 979, in _send_handling_redirects
response = self._send_single_request(request)
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpx_client.py", line 1014, in _send_single_request
response = transport.handle_request(request)
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpx_transports\default.py", line 249, in handle_request
with map_httpcore_exceptions():
~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 162, in exit
self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "C:\Users\anshu\AppData\Local\Programs\Python\Python313\Lib\site-packages\httpx_transports\default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout: timed out
Beta Was this translation helpful? Give feedback.
All reactions