Hello Experts,
We are trying to use the SP config API methods to export/import objects to new IdentityNow environments. We are able to do it using postman but when we use a python script it doesn’t matter how we send the json file we always get a
{
"messages": [
{
"locale": "en-US",
"text": "An internal fault occurred.",
"localeOrigin": "REQUEST"
},
{
"locale": "en-US",
"text": "An internal fault occurred.",
"localeOrigin": "DEFAULT"
}
],
"detailCode": "500.0 Internal fault",
"trackingId": "23f069582f30483b9d4f61887a88bbdf"
}
The request we are doing is:
headers = {
'Content-Type': 'multipart/form-data',
'Accept': 'application/json',
'Authorization': 'Bearer ' + tokenSB['access_token']
}
payload={'data': ('exportimportResult.json',open('exportimportResult.json'))}
response2 = requests.request("POST", importConfigURL, headers=headers, verify=False, files=payload)
Based on the documentation, we are sending the json file as expected (sp-config-import | SailPoint Developer Community).
Please, have anyone face the same issue? any idea about what’s the root of the error?
Regards,
Beatriz.