Closed mzur closed 1 year ago
Clarification: WoRMS can be used to import labels from the external WoRMS database into a label tree:
@lehecht I have to reopen this issue because the error also appeared at this location:
It also occurred to me that the SoapFault
is specific to the WoRMS adapter because other adapters might not use SOAP at all. So it's probably better to handle the exception directly in the adapter.
Here:
By wrapping the whole block in a try/catch
and throwing a Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException
with an appropriate message.
And here:
By also throwing a ServiceUnavailableHttpException
with the message.
You should revert #595 and add new test cases to WormsAdapterTest
.
WoRMS is in maintenance mode at the moment. This produces a
SoapFault
error here, which is not caught. Handle these kinds of errors more gracefully and return a "WoRMS is currently unavailable" response (maybe even code 503?).