Skip to content

Script fails with authorization error during DataverseNL recursion #1

@pedrohserrano

Description

@pedrohserrano

Summary:

Our script for extracting all dataverses/datasets from the Maastricht root dataverse in DataverseNL is now breaking.
This script used to work until December 2024 but now stops with an authorization-related error.

Error Message

ApiAuthorizationError: ERROR: GET - Authorization invalid https://dataverse.nl/api/v1/dataverses/XXXXX. MSG: User ... is not permitted to perform requested action.

Steps to Reproduce

1. Run the script `python generate_reports_dataverseNL.py` to recursively extract all children (dataverses and datasets) from the Maastricht root dataverse.
2. The API connection is successful, but it breaks when gathering the `dataverse_tree`
3. The minimal extraction is `tree_data = api.get_children("maastricht", children_types=['dataverses', 'datasets'])`

Gut feelings

  • The script appears to break at a deeper level in the dataverse tree (possibly at the department level).
  • It’s possible that permissions have changed, or that some subdataverses are now restricted.
  • There may have been changes to the DataverseNL security or SSO integration since last year.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions