Hi,
I am suddenly having a problem using API keys for an ajax call in Javascript to make updates using the Rally API. The method being used worked perfectly before, however this error is returned in all apps that use this method upon testing today:
"{"OperationResult": {"_rallyAPIMajor": "2", "_rallyAPIMinor": "0", "Errors": ["Not authorized to perform action: Invalid key"], "Warnings": []}}"
Here is the method used:
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
//Use parse() method to convert JSON string to JSON object
var responseJsonObj = JSON.parse(this.responseText);
var a = document.getElementById('here');
a.innerHTML = this.responseText;
// console.log( responseJsonObj.name );
// console.log( responseJsonObj.age );
}
};
// xmlhttp.setRequestHeader('Content-Type', contHeader);
xmlhttp.setRequestHeader('zsessionid', rallyAPIKey);
xmlhttp.send(JSON.stringify(postTest));
}
Has there been a change that makes something incorrect here? (I have also tried generating new API keys and had other users try as well)
Thanks in advanced!