You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2018-07-31 11:44:07 - info: Initializing database: Creating collections on first start
2018-07-31 11:44:08 - warn: Uncaught Exception
2018-07-31 11:44:08 - warn: {"message":"testData.forEach is not a function","stack":"TypeError: testData.forEach is not a function\n at utils.test.readData (/home/tinh/workspace/projects/blockchain/WolfBot/node_modules/@ekliptor/bit-models/models/serverConfig.ts:395:26)\n at ReadFileContext.fs.readFile [as callback] (/home/tinh/workspace/projects/blockchain/WolfBot/node_modules/@ekliptor/apputils/test.ts:6:20)\n at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:437:13)"}
2018-07-31 11:44:08 - warn: TypeError: testData.forEach is not a function
at utils.test.readData (/home/tinh/workspace/projects/blockchain/WolfBot/node_modules/@ekliptor/bit-models/models/serverConfig.ts:395:26)
at ReadFileContext.fs.readFile [as callback] (/home/tinh/workspace/projects/blockchain/WolfBot/node_modules/@ekliptor/apputils/test.ts:6:20)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:437:13)
It seems this file https://github.com/Ekliptor/bit-models/blob/master/models/serverConfig.ts#L392 expect the file serverConfig.json which I can't find anywhere
The text was updated successfully, but these errors were encountered:
tiengtinh
changed the title
testData.forEach is not a function trying to run the bot
"testData.forEach is not a function" trying to run the bot
Jul 31, 2018
tiengtinh
changed the title
"testData.forEach is not a function" trying to run the bot
"testData.forEach is not a function"
Jul 31, 2018
That is an error from my database module package: https://github.com/Ekliptor/bit-models
Although I can not reproduce it. Do you have the folder models/data/test? in bit-models?
Luckily this data is not really needed. So I just uploaded a new version with a fix for this.
Please ensure you have bit-models version 1.0.35 and install the bot again with an empty database.
Update: That file really wasn't part of the NPM version of the module. As you already said you can't find it;) Luckily not needed, so updating will fix it.
Hi,
I got this error while trying to run the bot
It seems this file
https://github.com/Ekliptor/bit-models/blob/master/models/serverConfig.ts#L392
expect the fileserverConfig.json
which I can't find anywhereThe text was updated successfully, but these errors were encountered: