gbif / occurrence

Occurrence store, download, search
Apache License 2.0
22 stars 15 forks source link

Download limits service always return ServiceUnavailableException when limits are exceed #311

Closed marcos-lg closed 1 year ago

marcos-lg commented 1 year ago

If a ResponseStatusException is thrown it's caught and always returns a ServiceUnavailableException:

https://github.com/gbif/occurrence/blob/c372fba61c38cefac94749a96a620a089aa3afe9/occurrence-download-service/src/main/java/org/gbif/occurrence/download/service/DownloadRequestServiceImpl.java#L191

marcos-lg commented 1 year ago

Fixed and deployed to prod