File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121use Codewithkyrian \ChromaDB \Generated \Responses \GetItemsResponse ;
2222use Codewithkyrian \ChromaDB \Generated \Responses \QueryItemsResponse ;
2323use GuzzleHttp \Client ;
24- use GuzzleHttp \Exception \ServerException ;
24+ use GuzzleHttp \Exception \RequestException ;
2525use Psr \Http \Client \ClientExceptionInterface ;
2626
2727/**
@@ -318,7 +318,7 @@ public function reset(): bool
318318
319319 private function handleChromaApiException (\Exception |ClientExceptionInterface $ e ): void
320320 {
321- if ($ e instanceof ClientExceptionInterface ) {
321+ if ($ e instanceof RequestException ) {
322322 $ errorString = $ e ->getResponse ()->getBody ()->getContents ();
323323
324324 if (preg_match ('/(?<={"\"error\"\:\")([^"]*)/ ' , $ errorString , $ matches )) {
You can’t perform that action at this time.
0 commit comments