Error Code "OSC-CREST-00017" using REST API
Content
Hi All,
I am using rest api to retrieve contact based on the contact email address, My code works well for one interface which is EN-US but give error OSC-CREST-00017 for other interface which is FR.
var ajaxUrl = globalContext.getInterfaceServiceUrl('rest') + "/connect/v1.3/queryResults/?query=SELECT id FROM contacts WHERE Emails.EmailList.Address='"+ EmailAddress + "'";
//alert(ajaxUrl);
return $.ajax({
type: "GET",
async: false,
url: ajaxUrl,
beforeSend: function (xhr) { xhr.setRequestHeader("Authorization", "Session " + sessionID); }
});
Error: "type": "https://Mysite.custhelp.com/services/rest/connect/exceptions/OSC-CREST-00017",
"title": "Une langue non prise en charge a été demandée",
"status": 400,
"detail": "This interface uses fr-FR language which does not match with requested language of 'en-US,en;q=0.9'",
"title": "Une langue non prise en charge a été demandée",
"status": 400,
"detail": "This interface uses fr-FR language which does not match with requested language of 'en-US,en;q=0.9'",
Tagged:
0