I have a simple function trying to retrieve Profile data, my Zendesk env is all good and all other Zendesk request is working, but I got a 503 error on this Profile GET request. Where could be the issue for causing this? Thanks.
function requestProfileData(client, identifierObject) {
const { profileSource, profileType, identifierType, identifierValue } = identifierObject;
const settings = {
url: `/api/v2/user_profiles?identifier=${profileSource}:${profileType}:${identifierType}:${identifierValue}`,
type: "GET",
};
client.request(settings).then(
profileData => {
console.log('profileData', profileData)
displayProfileData(profileData);
},
errorResponse => {
displayError(errorResponse);
}
);
}