geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
410 stars 487 forks source link

Error accesing Swagger API geonetwork 4 #5564

Open etorresmoya opened 3 years ago

etorresmoya commented 3 years ago

I recently installed Geonetwork 4.0.0.0 in my server, and when I try to access the Swagger API image

(http://XXXXXXXXXXXX:8080/geonetwork/srv/api/doc)

I am getting this error

image

fxprunayre commented 3 years ago

Can you update to latest 4 version ?

https://apps.titellus.net/geonetwork/doc/api/index.html is working fine on current 4.0.x.

juanluisrp commented 3 years ago

I have the same problem in a 4.0.4 instance.

matself commented 3 years ago

Hi! I have seen this too, in a 4.0.4 snapshot as well as in a new 4.0.4 release instance. But decided to leave the problem for later. When I returned to investigate, it was gone. The swagger ui now opens without fault, regardless of whether I am logged in or not. But then I get a CORS error which I cannot resolve. This is from a simple GET /standards request. I have no SSL, so this is pure HTTP.

TypeError: Cross origin requests are only supported for HTTP.

Hälsning / Regards Mats.E

Skickat från min / Sent from my iPad, Ursäkta att jag är kortfattad / Excuse my brevity.

21 maj 2021 kl. 09:45 skrev Juan Luis Rodríguez Ponce @.***>:

 I have the same problem in a 4.0.4 instance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.