Hi, community,
Our app fails to create space property on some sites with a 404 error when calling the API by the app privilege.
The space exists. (The app calls get space API before the request. And it works.) And, I think space permission is set correctly.
I can’t find why it happens because the condition doesn’t match the ones in the document.
Some customers reported the problem, while others can work.
Retrying the same requests after a while doesn’t work.
Please help!
Request
"method": "post",
"url": "/rest/api/space/KEY/property",
"body": {
"key": "com.ricksoft-inc.plugins.space-sync-for-confluence:synchronizing",
"value": "true",
}
Response
"status": 404,
"data": {
"statusCode": 404,
"data": {
"authorized": true,
"valid": false,
"errors": [
{
"message": {
"key": "spaceproperty.invalid.space",
"args": [
"KEY"
]
}
}
],
"successful": false
},
"message": "com.atlassian.confluence.api.service.exceptions.NotFoundException: Cannot create new space property: JsonSpaceProperty{id='null', key='com.ricksoft-inc.plugins.space-sync-for-confluence:synchronizing', space=ExpandedReference{idProperties={key=KEY}, of=some(Space{key='KEY', name='null'})}, version=null}"
}
Space Permission