Radiks server deployment issue

Hello @hank
we trying to deploy radiks server into IBM cloud but getting this error

2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR /home/vcap/app/node_modules/radiks-server/index.js:5
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR const setup = async (config = {}) => {
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR ^
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR SyntaxError: Unexpected token (
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR at createScript (vm.js:56:10)
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR at Object.runInThisContext (vm.js:97:10)
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR at Module._compile (module.js:549:28)
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR at Object.Module._extensions…js (module.js:586:10)
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR at Module.load (module.js:494:32)
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR at tryModuleLoad (module.js:453:12)
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR at Function.Module._load (module.js:445:3)
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR at Module.require (module.js:504:17)
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR at require (internal/module.js:20:19)
2019-07-16T22:14:42.01+0200 [APP/PROC/WEB/0] ERR at Object. (/home/vcap/app/server.js:5:19)
and this is the code i am using
var express = require(“express”),
app = express();
console.log(“here elbaruni1”,process.env.uri1,{mongoDBUrl:process.env.uri1 } ,"port ", process.env.PORT)
var port = process.env.PORT || 8080;
const { setup } = require(‘radiks-server’);

setup({mongoDBUrl:process.env.uri1 }).then((RadiksController) => {
app.use(’/radiks’, RadiksController);
});

app.listen(port);
console.log("Listening on port ", port);

and once we still facing this issue , we trying digitalocean ubuntu droplet
but also getting strange error too

MongoError: no mongos proxy available

your help and support is highly appreciated

1 Like