GithubHelp home page GithubHelp logo

Comments (9)

miraclx avatar miraclx commented on May 27, 2024 1

@Khadeeejah just submitted #623, which is a promising resolution for this issue.

from freyr-js.

p0we7 avatar p0we7 commented on May 27, 2024

https://music.apple.com/assets/index-d98aab9a.js

Why is the docker image still running with a 401 error even though I replaced the tonken in the default conf.json with the latest token?

from freyr-js.

miraclx avatar miraclx commented on May 27, 2024

First, can you file another issue? since this is a tracking issue for automation not token-related issues.

And in that, can you elaborate on how you are updating the token and building the image?

from freyr-js.

zykrah avatar zykrah commented on May 27, 2024

@miraclx This may be of use https://github.com/lujjjh/LitoMusic/blob/main/scripts/update-developer-token.sh.

from freyr-js.

miraclx avatar miraclx commented on May 27, 2024

@zykrah, yeah it's practically equivalent to the script I have in the OP. Just that they're writing it to the file at the end, but you still have to manually call the script.

For freyr, I would like to integrate it directly so that when freyr itself detects that the token has expired, it updates it itself.

from freyr-js.

zykrah avatar zykrah commented on May 27, 2024

I've translated the process into a python script, I don't know much JavaScript but I'm sure it wouldn't be too difficult using requests and regex/whatever other string manipulation? As for detection of whether the token has expired, couldn't you just test for 401 responses whenever you call to the endpoint and then run the token update function (and cache it locally?).

from freyr-js.

miraclx avatar miraclx commented on May 27, 2024

Yes, exactly. We already have detection, just not update and eventual persistence.

Haven't had the time for a while. 😓

from freyr-js.

joalricha869 avatar joalricha869 commented on May 27, 2024

how can i do this on my own, i cant run the commands (linux)

from freyr-js.

joalricha869 avatar joalricha869 commented on May 27, 2024

nvm i got used the script and it worked

from freyr-js.

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.