Onto-Med / top-backend

Spring Boot based backend of the TOP Framework
MIT License
0 stars 1 forks source link

Follow redirect to terminology server #201

Closed ChristophB closed 7 months ago

ChristophB commented 7 months ago

This pull request sets the default value of TERMINOLOGY_SERVICE_ENDPOINT to https://www.ebi.ac.uk/ols4/api (was localhost), and followRedirect = true of the web client that is used to query OLS.

KonradHoeffner commented 7 months ago

I rebased on this locally but I still get the error with the old URL:

backend-1 | 2024-02-19 13:54:33.314 ERROR 1 --- [nio-8080-exec-9] c.s.t.b.r.ols.CodeSystemRepository : 301 Moved Permanently from GET https://www.ebi.ac.uk/ols/api/ontologies?page=0&size=1000; nested exception is org.springframework.web.reactive.function.UnsupportedMediaTypeException: Content type 'text/html' not supported for bodyType=care.smith.top.backend.service.ols.OLSOntologiesResponse

ChristophB commented 7 months ago

I rebased on this locally but I still get the error with the old URL:

backend-1 | 2024-02-19 13:54:33.314 ERROR 1 --- [nio-8080-exec-9] c.s.t.b.r.ols.CodeSystemRepository : 301 Moved Permanently from GET https://www.ebi.ac.uk/ols/api/ontologies?page=0&size=1000; nested exception is org.springframework.web.reactive.function.UnsupportedMediaTypeException: Content type 'text/html' not supported for bodyType=care.smith.top.backend.service.ols.OLSOntologiesResponse

Can't reproduce it. :( Have you rebuilt your dev Docker container?

KonradHoeffner commented 7 months ago

Yes, I've rebuild it multiple times and even deleted all the volumes and reimported the repository. Are you also using https://www.ebi.ac.uk/ols/api for testing? (not with the "4").