EBS: Posting to Everbridge Open Self-Service Risk Event Feeds Generates Error, 'Missing custom feed metadata: Either account is disabled or Org [x] is not subscribed for CUSTOM feeds.”

lock-solid.svg

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:

  1. Log in to Everbridge Manager Portal and switch to the Organization defined in the error message.
  2. Get the REI-CSRF-TOKEN.
  1. Open the browser’s Network Inspector and set to filter by riskevents.
  2. Navigate to SettingsEverbridge Open Risk Events.
  3. Select one of the riskevent calls, and select the Cookies tab.
  4. Find REI-CSRF-TOKEN and copy the current token.
  1. Update the below AJAX Script with the current REI-CSRF-TOKEN:
  1. Copy and paste the AJAX Script below into a text editor.
  2. Replace csrfToken on the line headers: {'REI-CSRF-TOKEN':'csrfToken' } with your current token.
  1. 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.
  1. 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"
        }
        });
    }
});

 
    Was this article helpful?
    0 out of 0 found this helpful

    Comments

    0 comments

    Article is closed for comments.