简体   繁体   English

意外的令牌}不存在

[英]Unexpected Token } on line that doesn't exist

Says that there is an unexpected token } at a line that doesnt exist. 说在不存在的行上有一个意外的标记}。 I have tried makeing sure that every bracket has a partner and so on, and I cant seem tio figure it out. 我已经尝试确保每个支架都有一个伴侣,依此类推,我似乎无法弄清楚。 It's probably a dumb mistake since its late. 自从晚期以来,这可能是一个愚蠢的错误。 Any help is appreciated. 任何帮助表示赞赏。

Error code: 错误代码:

    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)

I tried to make sure they all had pairs, with no luck 我试图确保他们都成对,没有运气

    {
        "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
    }

removed any personal info like TOTP auth generator keys and such. 删除了所有个人信息,例如TOTP身份验证生成器密钥等。 I want this to work. 我要这个工作。

Remove , in the following line 取出,在下面的行

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM