You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test scripts creating a native dataset (POST to /api/dataverses/$dataverse_aliase/datasets) fail with error message:
{"status":"ERROR","message":"Error parsing the POSTed json into a dataverse: Field alias is mandatory"}
Creation of dataset through UI works; querying dataset API endpoint to check JSON (api/datasets/:persistentId/?persistentId=doi:$persistentId) does not show an alias field in the JSON returned. scripts/api/data/dataset-*json also don't show an alias field.
Observed in df67463; haven't fully excluded the possibility that this is user error (yet).
The text was updated successfully, but these errors were encountered:
@pdurbin - I don't think this is an API guide issue, because I was able to use the same scripts/JSON files to create datasets with a previous commit (I believe 4.6). I still have some troubleshooting to do to narrow down which change caused things to stop working (aka - possible bug vs problem on my end).
Additional investigation showed that this was user error (and that @pdurbin was on the right track).
For future reference, the reported error message occurs with valid JSON - but when the dataverse alias (under which the dataset will be created) is missing from the endpoint URL (in this case, due to typo-ing an environmental variable).
Test scripts creating a native dataset (POST to
/api/dataverses/$dataverse_aliase/datasets
) fail with error message:{"status":"ERROR","message":"Error parsing the POSTed json into a dataverse: Field alias is mandatory"}
Creation of dataset through UI works; querying dataset API endpoint to check JSON (
api/datasets/:persistentId/?persistentId=doi:$persistentId
) does not show analias
field in the JSON returned.scripts/api/data/dataset-*json
also don't show analias
field.Observed in df67463; haven't fully excluded the possibility that this is user error (yet).
The text was updated successfully, but these errors were encountered: