carcabot / tiktok-signature

Generate tiktok signature token using node
755 stars 286 forks source link

Crashes on launch #74

Closed 1fexd closed 4 years ago

1fexd commented 4 years ago

Describe the bug When launching this program, it crashes wit hthe following log:

/tiktok-signature/index.js:5
  userAgent =
            ^

SyntaxError: Unexpected token =
    at Module._compile (internal/modules/cjs/loader.js:760:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Module.require (internal/modules/cjs/loader.js:723:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/Projekte/tiktok-signature/listen.js:1:16)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)

If fields below will be empty then issue will be Ignored and Closed

To Reproduce Steps to reproduce the behavior:

Screenshots

carcabot commented 4 years ago

Hi, Try upgrading your node to v12 or more.

vonboe commented 4 years ago

I use node 14.5.0 error same

carcabot commented 4 years ago

@vonboe it should work with node v14, make sure that you run it with that version. Also you can run it with Docker see Readme for instructions.