- Issue created by @edyuenyw
- 🇦🇺Australia edyuenyw
The only log is coming from our custom search exception
php-error web-26856 [07-Mar-2024 14:53:39 Australia/Melbourne] Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: "The search service is unavailable" at ... get()
here the custom code get()
public function get() {
try {
$this->initQuery();
$this->query->addCondition('search_api_datasource', 'entity:node');
$this->applySearchPhrase();
$this->applySort();
$this->applyFilters();
$this->execute();
$this->processResults();
return $this->getResponse();
}
catch (\Exception $e) {
$this->logger->error($e->getMessage());
throw new HttpException(503, 'The search service is unavailable');
}
}I am still new to drupal so I'm trying to get it in local vanilla drupal but will take some time and not even sure it this the way to debug the issue.
This is probably more appropriate for the search API module. It could be a backend issue at Acquia.
Can you reproduce the problem without using REST?
Why are you catching any exception type? Usually you should be specific.
Anyway, what exception is actually caught? You log its message but that is not the log you showed.
- 🇦🇺Australia edyuenyw
Thanks @cilefen,
There are a few thing I'm going to try which I haven't. Without using REST, the only way I was doing it was to use JSON API to retrieve the nodes. It returned all the data.
I should also remove that catch error to test. At the moment I don't see any other errors apart from the the current error.