意外的令牌}不存在

时间:2019-04-22 05:23:43

标签: javascript node.js json steam steambot

说在不存在的行上有一个意外的标记}。我已经尝试确保每个支架都有一个伴侣,依此类推,我似乎无法弄清楚。自从晚期以来,这可能是一个愚蠢的错误。任何帮助表示赞赏。

错误代码:

    SyntaxError: /bots/crypto/data/config.json: Unexpected token } in JSON at position 1328
        at JSON.parse (<anonymous>)
        at Object.Module._extensions..json (module.js:671:27)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at Object.<anonymous> (/bots/crypto/app.js:1:78)
        at Module._compile (module.js:652:30)
        at Object.Module._extensions..js (module.js:663:10)

我试图确保他们都成对,没有运气

    {
        "address": "redacted",
        "mnemonic": "redacted",
        "accountIndex": 1,
        "admins": "76561198850513237",
        "username": "redacted",
        "password": "redacted",
        "shared_secret": "redacted=",
        "identity_secret": "redacted=",
        "minimumConfirmations": 2,
        "network": "test",
        "satoshisPerByte": 2,
        "website": "redacted",
        "discord": "none",
        "group": "redacted",
        "owner": "redacted",
        "csgoKeys": [
            "eSports Key",
            "Shadow Case Key",
            "Huntsman Case Key",
            "Chroma Case Key",
            "Horizon Case Key",
            "Gamma Case Key",
            "Clutch Case Key",
            "Glove Case Key",
            "Prisma Case Key",
            "Operation Vanguard Case Key",
            "Operation Wildfire Case Key",
            "Danger Zone Case Key",
            "Operation Breakout Case Key",
            "Operation Phoenix Case Key",
            "Gamma 2 Case Key",
            "Chroma 2 Case Key",
            "Spectrum 2 Case Key",
            "Winter Offensive Case Key",
            "Chroma Case Key",
            "Chroma 3 Case Key",
            "Spectrum Case Key",
            "Falchion Case Key"
        ],
        "tfKeys": [
            "Mann Co. Supply Crate Key"
        ],
        "price": {
            "csgo": 1.63,
            "tf": 1.60,
            "hydra": 1
        },
        "sellprice": {
            "csgo": 1.53,
            "tf": 1.52,
            "hydra": 0.5
        },
        "enabled": {
            "tf": 1,
        },
        "enableSell": 1
    }

删除了所有个人信息,例如TOTP auth生成器密钥等。 我想要这个工作。

1 个答案:

答案 0 :(得分:3)

在下一行中删除,

"enabled": {
        "tf": 1
    },