Skip to content

Set embargo date API results in internal server error #8692

@LauraHuisintveld

Description

@LauraHuisintveld

What steps does it take to reproduce the issue?
I used this curl command in the command line:
export API_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
export SERVER_URL=https://test.dataverse.nl
export PERSISTENT_IDENTIFIER=doi:10.80227/test-FI6EIR
export JSON='{"dateAvailable":"2022-10-13", "reason":"Testing", "fileIds":[269054]}'

curl -H "X-Dataverse-key: $API_TOKEN" -H "Content-Type:application/json" "$SERVER_URL/api/datasets/:persistentId/files/actions/:set-embargo?persistentId=$PERSISTENT_IDENTIFIER" -d "$JSON" -v

  • What happens?
    I get an internal server error back:

  • upload completely sent off: 78 out of 78 bytes
    < HTTP/1.1 500 Internal Server Error
    < Date: Wed, 11 May 2022 14:27:47 GMT

  • To whom does it occur (all users, curators, superusers)?
    I used an API-token of a superuser.

Which version of Dataverse are you using?
version 5.10.1 (on our DataverseNL test server.)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions