Problem:
Posting to Everbridge Open Self-Service Risk Events feeds generates the error:
Missing custom feed metadata: Either account is disabled or Org [x] is not subscribed for CUSTOM feeds.
Root Cause:
There is an issue with the account configuration of Self-Service Risk Events.
Solution:
- Log in to Everbridge Manager Portal and switch to the Organization defined in the error message.
- Get the REI-CSRF-TOKEN.
- Open the browser’s Network Inspector and set to filter by riskevents.
- Navigate to Settings ➤ Everbridge Open ➤ Risk Events.
- Select one of the riskevent calls, and select the Cookies tab.
- Find REI-CSRF-TOKEN and copy the current token.
- Update the below AJAX Script with the current REI-CSRF-TOKEN:
- Copy and paste the AJAX Script below into a text editor.
- Replace csrfToken on the line headers: {'REI-CSRF-TOKEN':'csrfToken' } with your current token.
- Open the browser's Developer Tools Console:
- Firefox: Menu ➤ Web Developer ➤ Web Console.
- Chrome: More tools ➤ Developer tools ➤ Console.
- Safari: Develop ➤ Show Javascript Console.
- IE11 F12 Developer Tools ➤ Console.
- Copy and paste the modified AJAX Script into the Console, and press Enter.
$(function() {
//EBAdmin - Check if Triggers are enabled for the organization/account
if(EB_Common.Security.protect(['TRIGGERS'])){
$.ajax({
headers: {'REI-CSRF-TOKEN':'csrfToken'},
url: '/gateway/api/riskevents/v1/ui/config/',
url: '/gateway/api/riskevents/v1/ui/config/account/enabled/',
type: 'GET',
success: function(result){
const isAccountEnabled = JSON.parse(JSON.stringify(result));
console.log('Is account enabled? - ' + isAccountEnabled);
if(!isAccountEnabled) {
console.log("updating account level flag!");
$.ajax({ url: '/gateway/api/riskevents/v1/ui/config/account/enable/', type: 'PUT'});
}
$.get(
'/gateway/api/riskevents/v1/ui/config/',
function(getData, status){
// console.log('GET config :' + JSON.stringify(getData));
$.ajax({
url: '/gateway/api/riskevents/v1/ui/config/',
type: 'POST',
data: JSON.stringify(getData),
dataType: 'json',
contentType: "application/json; charset=utf-8",
success: function(postResponseData, status, xhr) {
console.log('Organization configuration is ' + ((xhr.status === 200 || xhr.status === 201) ? 'successfully re-saved' : 'not successfully re-saved'));
},
error: function(xhr) {
throw "Error occured on POST organization config call"
}
});
}).fail(function() {
throw "Error occured on GET organization config call"
});
//=-=-=-=-=-=-=-==-=-=-=-=-=-=-==-=-=-=-=-=-=-==-=-=-=-=-=-=-=
},
error: function(xhr){
console.log('An error occured: ' + xhr.status + ' ' + xhr.statusText);
throw "Error occured on account enable/disable check GET call"
}
});
}
});
Article Feedback
Please sign in to leave a comment.