E=IVO=001

Error in build V1.0.0 of BSS-Express. (These errors are only valid for one version)

If you received this error code while you use the middleware ('mw()') function, you may have forgotten to add an options tag or forgotten to add it correctly. Here is an example of how it should go:

const express = require('express');
const bss = require('bss-express');

const app = express();

app.use(bss.mw({
    useAI : false,
    APIToken : null,
    failedCallback : function(request, response, next) {
        // Do something like render a page if something fails.
    }
});

// Your code...

The error usually says:

Options must include: useAI, APIToken, failedCallback. Error code: E=IVO=001

And some examples of what you may have done to get this error:

const express = require('express');
const bss = require('bss-express');

const app = express();

app.use(bss.mw());

// Your code...
const express = require('express');
const bss = require('bss-express');

const app = express();

app.use(bss.mw({
    useAI : false
});

// Your code...

Last updated