diff --git a/src/store/src/Bridge/Weaviate/Store.php b/src/store/src/Bridge/Weaviate/Store.php index e05695dff..89ddd6aa4 100644 --- a/src/store/src/Bridge/Weaviate/Store.php +++ b/src/store/src/Bridge/Weaviate/Store.php @@ -98,9 +98,13 @@ private function request(string $method, string $endpoint, array $payload): arra $finalPayload['json'] = $payload; } - $result = $this->httpClient->request($method, $url, $finalPayload); + $response = $this->httpClient->request($method, $url, $finalPayload); - return $result->toArray(); + if (200 === $response->getStatusCode() && '' === $response->getContent(false)) { + return []; + } + + return $response->toArray(); } /**