Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pkiraly opened this issue Apr 21, 2022 · 1 comment

Comments

@pkiraly
Copy link
Member

pkiraly commented Apr 21, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants