Giter Site home page Giter Site logo

Comments (7)

robindz avatar robindz commented on May 16, 2024 1

@sami-sage @anpato
What you're doing wrong is including the '&_signature=' bit when calling browser.js, this is wrong and will result in a token that only returns empty responses.
You're supposed to exclude that part during signature creation and add it when you're making an HTTP request to that endpoint.

from tiktok-signature.

anpato avatar anpato commented on May 16, 2024

+1 Same issue here, looks like tiktok changed something with the signature again.

from tiktok-signature.

robindz avatar robindz commented on May 16, 2024

Nothing has been changed, browser.js is still creating correct signatures for me.

from tiktok-signature.

sami-sage avatar sami-sage commented on May 16, 2024

Thank you very much @GodsWithin
I checked the way you mentioned and it worked like a charm. Only issue is, the token seems to be expiring after some time and we need to get the token again by stopping the server and restarting it by doing

node server.js

from tiktok-signature.

robindz avatar robindz commented on May 16, 2024

@sami-sage I just wrote a dirty bash script to do that for me.

image

Do note that it can happen from time to time that it fails to restart, therefor I advice you to store the previously used non-empty/non-whitespace signature result so that your application doesn't fail when the server is down for 4 hours.

from tiktok-signature.

anpato avatar anpato commented on May 16, 2024

Thank you gentlemen! Interestingly enough it worked prior without sending &_signature before.

from tiktok-signature.

sami-sage avatar sami-sage commented on May 16, 2024

@sami-sage I just wrote a dirty bash script to do that for me.

image

Do note that it can happen from time to time that it fails to restart, therefor I advice you to store the previously used non-empty/non-whitespace signature result so that your application doesn't fail when the server is down for 4 hours.

Thanks @GodsWithin , I will try this

from tiktok-signature.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.