New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json error then enoent #18
Comments
What about antother step of readme? Can you provide your config files? ConfigSet correct configuration in:
Application can work with correct cookie auth. |
Yes, seems there are some problems, need to check updates from game. |
add some fixes. reinstall app, and use yarn install, instead npm install |
Hello, @psx365. I'm waiting for your report :) |
I created an account and checked the wrork of the tool, see results. |
I am going to check it today. Last time I tested after the "npm run collect" command it was frozen and did nothing. Update: It works I get the datas that I need, but the excel files are empty. |
Hello, @psx365 |
Hi! PS C:\Users\user\Documents\GitHub\travian-elephant-finder> npm run collect
C:\Users\user\Documents\GitHub\travian-elephant-finder\node_modules\jsonfile\index.js:67 SyntaxError: data/oasis.json: Unexpected end of JSON input Node.js v17.6.0 How did you resolve the problem? Thanks! |
Hello @bitschak . It is a stale issue. Create a new issue if the error still exists. |
npm run collect
travian-elephant@0.0.1 collect
node src/scripts/collectOasysPosition.js
C:\Users\Administrator\Desktop\travian-elephant-finder-master\node_modules\jsonfile\index.js:67
throw err
^
SyntaxError: data/oasis.json: Unexpected end of JSON input
at JSON.parse ()
at Object.readFileSync (C:\Users\Administrator\Desktop\travian-elephant-finder-master\node_modules\jsonfile\index.js:63:17)
at Object. (C:\Users\Administrator\Desktop\travian-elephant-finder-master\src\scripts\collectOasysPosition.js:8:30)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
PS C:\Users\Administrator\Desktop\travian-elephant-finder-master>
then if I place curly brackets inside the empty oasis.json file it runs but gives the different error below
Error: ENOENT: no such file or directory, open 'src/config/token.txt'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at Object.getToken (C:\Users\Administrator\Desktop\travian-elephant-finder-master\src\config\index.js:39:20)
at Object.getBearerHeader (C:\Users\Administrator\Desktop\travian-elephant-finder-master\src\config\index.js:43:22)
at C:\Users\Administrator\Desktop\travian-elephant-finder-master\src\libs\axiosApi.js:14:27
at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:61:5)
at module.exports.runLoopOnce (C:\Users\Administrator\Desktop\travian-elephant-finder-master\node_modules\deasync\index.js:64:10)
at module.exports (C:\Users\Administrator\Desktop\travian-elephant-finder-master\node_modules\deasync-promise\index.js:13:9)
at module.exports (C:\Users\Administrator\Desktop\travian-elephant-finder-master\node_modules\system-sleep\module.js:30:36)
at Object. (C:\Users\Administrator\Desktop\travian-elephant-finder-master\src\scripts\collectOasysPosition.js:47:5) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'src/config/token.txt'
}
The text was updated successfully, but these errors were encountered: