Skip to content
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

Fix this error? #12

Closed
thecao365 opened this issue Dec 24, 2018 · 2 comments
Closed

Fix this error? #12

thecao365 opened this issue Dec 24, 2018 · 2 comments

Comments

@thecao365
Copy link

thecao365 commented Dec 24, 2018

Can you guide me to fix this error?

r00t@ubuntu:~/crypto-trading-bot$ node index.js trade
undefined:41
    },
    ^

SyntaxError: Unexpected token } in JSON at position 1079
    at JSON.parse (<anonymous>)
    at Object.boot (/home/r00t/crypto-trading-bot/modules/services.js:94:23)
    at Object.<anonymous> (/home/r00t/crypto-trading-bot/index.js:10:10)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:282:19)

@Haehnchen
Copy link
Owner

sry this was a simple synax issue inside conf.json.dist is fixed now: https://github.com/Haehnchen/crypto-trading-bot/blob/master/conf.json.dist

@minerlab
Copy link

minerlab commented Jan 17, 2019

solved? not work form me, same error
crypto-trading-bot$ node index.js trade

crypto-trading-bot/modules/services.js:121
throw 'Invalid conf.json file. Please check: ' + String(e)
^
Invalid conf.json file. Please check: SyntaxError: Unexpected token R in JSON at position 145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants