EBISPOT / OLS

Ontology Lookup Service from SPOT at EBI
http://www.ebi.ac.uk/ols
Apache License 2.0
95 stars 40 forks source link

findByIdAndIsDefiningOntology API call seems to be failing #558

Closed bherr2 closed 2 years ago

bherr2 commented 2 years ago

This used to work: https://www.ebi.ac.uk/ols/api/terms/findByIdAndIsDefiningOntology?obo_id=UBERON:0001516 has the API changed?

henrietteharmse commented 2 years ago

Thanks for bringing this to our attention! We will have this fixed on Monday!

henrietteharmse commented 2 years ago

Here is the related stack trace:

2022-02-18 15:16:54.139 ERROR 4891 --- [http-bio-8080-exec-5] o.s.boot.context.web.ErrorPageFilter : Forwarding to error page from request [/api/terms/findByIdAndIsDefiningOntology] due to exception [uk.ac.ebi.spot.ols.neo4j.model.Term cannot be cast to uk.ac.ebi.spot.ols.controller.api.localization.LocalizedTerm]

java.lang.ClassCastException: uk.ac.ebi.spot.ols.neo4j.model.Term cannot be cast to uk.ac.ebi.spot.ols.controller.api.localization.LocalizedTerm at uk.ac.ebi.spot.ols.controller.api.TermAssembler.toResource(TermAssembler.java:24) at org.springframework.data.web.PagedResourcesAssembler.createResource(PagedResourcesAssembler.java:182) at org.springframework.data.web.PagedResourcesAssembler.toResource(PagedResourcesAssembler.java:115) at uk.ac.ebi.spot.ols.controller.api.TermController.getTermsByIdAndIsDefiningOntology(TermController.java:161) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

jamesamcl commented 2 years ago

Hi, this is fixed now! thanks

bherr2 commented 2 years ago

Thank you!