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:
constexpress=require('express');constbss=require('bss-express');constapp=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:
constexpress=require('express');constbss=require('bss-express');constapp=express();app.use(bss.mw());// Your code...
constexpress=require('express');constbss=require('bss-express');constapp=express();app.use(bss.mw({ useAI :false});// Your code...