Stream: troubleshooting

Topic: โœ” Endpoint available from localhost only


view this post on Zulip Mohsen Jafari (Mar 22 2024 at 10:13):

When I call /api/admin/datasetfield/load I get the following message:

Endpoint available from localhost only. Please contact the dataverse administrator

What should I set to solve this?

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 22 2024 at 11:06):

You could try setting an unblock key: https://github.com/IQSS/dataverse/commit/89739bc39542930546c807c2236033b7da790688

view this post on Zulip Notification Bot (Mar 25 2024 at 08:45):

Mohsen Jafari has marked this topic as resolved.

view this post on Zulip Mohsen Jafari (Mar 25 2024 at 08:47):

We used this link to solve the issue:

https://github.com/IQSS/dataverse-docker/issues/29

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 25 2024 at 18:27):

Huh, "allow" isn't even documented as an option: https://guides.dataverse.org/en/6.1/installation/config.html#blockedapipolicy

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 25 2024 at 18:28):

Huh, but "allow" is an option in the code: https://github.com/IQSS/dataverse/blob/v6.1/src/main/java/edu/harvard/iq/dataverse/api/ApiBlockingFilter.java#L126

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 25 2024 at 18:30):

This makes me nervous. Please make sure you're aware of the dangers of having endpoints like "/api/admin" unblocked: https://guides.dataverse.org/en/6.1/installation/config.html#blocking-api-endpoints


Last updated: Oct 30 2025 at 06:21 UTC