API calls which should be called from local machine are not accessible from the host
pkiraly opened this issue · comments
Király Péter commented
Once docker is running, those API calls which should be called from local machine are not accessible from the host:
$ curl -i -H X-Dataverse-key:$API_TOKEN http://localhost/api/admin/datafiles/integrity/fixmissingoriginalsizes
HTTP/1.1 301 Moved Permanently
Location: https://localhost/api/admin/datafiles/integrity/fixmissingoriginalsizes
Date: Thu, 24 Mar 2022 13:10:37 GMT
Content-Length: 17
Content-Type: text/plain; charset=utf-8
$ curl -i -k -H X-Dataverse-key:$API_TOKEN https://localhost/api/admin/datafiles/integrity/fixmissingoriginalsizes
HTTP/2 404
content-type: text/plain; charset=utf-8
x-content-type-options: nosniff
content-length: 19
date: Thu, 24 Mar 2022 13:10:59 GMT
404 page not found
Johannes Darms commented
They can be called by executing the calls within the docker container. For example:
docker exec -it dataverse curl http://localhost:8080/api/admin/datasetfield dataverse