Post on /api/sources fails with a 500
Hi, I am trying to create new sources but the call is failing with a 500.
curl --location --request POST 'https://sshoc-marketplace-api-stage.acdh-dev.oeaw.ac.at/api/sources' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJNb2RlcmF0b3IiLCJpYXQiOjE2MjQzNTU3NTEsImV4cCI6MTYyNDQ0MjE1MX0.fkDihbSs4NOSPvw_6ZVotkDl0HtEQ6iIxBceHB-5atPRJZmD18rcd9qXpsdos7ICaxILUHiMfeh25VDN23So9A' \
--data-raw '{
"label": "Zotero - Parthenos",
"url": "https://www.zotero.org/groups/427927/ssk-parthenos",
"urlTemplate": "https://api.zotero.org/groups/427927/items/{source-item-id}"
}'
Response:
{
"timestamp": "2021-06-22 10:08:45",
"status": 500,
"error": "could not execute statement; SQL [n/a]; constraint [sources_pkey]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement"
}