We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2beda44 + a932ad7 commit dabde02Copy full SHA for dabde02
1 file changed
src/Generated/ChromaApiClient.php
@@ -21,7 +21,7 @@
21
use Codewithkyrian\ChromaDB\Generated\Responses\GetItemsResponse;
22
use Codewithkyrian\ChromaDB\Generated\Responses\QueryItemsResponse;
23
use GuzzleHttp\Client;
24
-use GuzzleHttp\Exception\ServerException;
+use GuzzleHttp\Exception\RequestException;
25
use Psr\Http\Client\ClientExceptionInterface;
26
27
/**
@@ -318,7 +318,7 @@ public function reset(): bool
318
319
private function handleChromaApiException(\Exception|ClientExceptionInterface $e): void
320
{
321
- if ($e instanceof ClientExceptionInterface) {
+ if ($e instanceof RequestException) {
322
$errorString = $e->getResponse()->getBody()->getContents();
323
324
if (preg_match('/(?<={"\"error\"\:\")([^"]*)/', $errorString, $matches)) {
0 commit comments