IQSS / dataverse-docker

Dataverse 6.2 on Docker with integrated services called "Archive in a box" and could be used both as demo and production system and easily integrated with other services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API calls which should be called from local machine are not accessible from the host

pkiraly opened this issue · comments

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

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