Closed ntd1683 closed 5 months ago
With little data, it runs normally, but with a lot of data, you will encounter the same error
It might be some issue with a large number of results being processed by Okhttp lib. I'll reproduce and address it.
I think adding pagination support can be an excellent approach to this.
Thank you very much, I will wait
@ntd1683, I've added an API timeout, which you can set using client.setTimeout(180)
. I think this should allow the client more time to wait for Chroma to return all results. The default is 60 seconds.
If this looks like an ok approach I can release the new version now and later on add the pagination options.
I think it's okay, I'll wait for release new version, thank you very much
@ntd1683, just adding the tests and then I'll release the new version.
ok, I will wait, it will help me a lot
@ntd1683, all done. 0.1.5
is now released.
You can now do:
Client client = new Client("http://localhost:8000");
client.setTimeout(180); //timeout in seconds
@ntd1683, did you manage to test this with a high enough timeout that worked?
it helped me a lot thanks
Error Socket time out , Socket closed
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: tech.amikos.chromadb.handler.ApiException: java.net.SocketTimeoutException: timeout] with root cause java.net.SocketException: Socket closed
my code :