Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'FluxSwitchMap' with class 'reactor.core.publisher.FluxSwitchMap' to class 'io.reactivex.rxjava3.core.Flowable'
at org.grails.web.converters.ConverterUtil.invokeOriginalAsTypeMethod(ConverterUtil.java:147)
at org.grails.web.converters.ConvertersExtension.asType(ConvertersExtension.groovy:56)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at au.org.ala.collectory.resources.gbif.GbifDataSourceAdapter.getJSONWS(GbifDataSourceAdapter.groovy:249)
at au.org.ala.collectory.resources.gbif.GbifRepatDataSourceAdapter.datasets(GbifRepatDataSourceAdapter.groovy:33)
at au.org.ala.collectory.ExternalDataService.searchForDatasets(ExternalDataService.groovy:65)
at au.org.ala.collectory.ManageController.searchForRepatResources(ManageController.groovy:126)
... 21 common frames omitted
The following exception is thrown: