devorizon I can' t create a new playlist, after clicking the `create` button the api request (POST: https://api.listenbrainz.org/1/playlist/create ) is showing the HTTP unauthorized Error (status code: 401) saying `Invalid authorization token. The Auth token header sent is `Authorization: Token 1a2c5c52-72d4-4170-87fe-8d3d5491aa11`. Can anyone tell me how can i remove this error?
shivam-kapila
devorizon: refrain from sharing personal info like this
Can you confirm that the auth token is same as in your profile section
devorizon
yes... it's same
_lucifer
devorizon: you need to configure the API url in `config.py`
shivam-kapila
Oh it was on dev setup. I thought in prod
_lucifer
i spent some time figuring this out yesterday so i thought it might be the case :)
line 118 in `listenbrainz\config.py`.
shivam-kapila
Similar thing happens for submitting listens on dev.
devorizon
my API_URL is `API_URL = 'https://api.listenbrainz.org'.. i changed it to `http://localhost` .. it worked... thanks
In React related tsx files i found that in vs-code it's showing me so many linting and module not found errors (due to not rable to find node_modules i guess).. is there a way to stop these errors from showing up?
shivam-kapila
Umm. Stop using vscode?
Jk... Maybe doing npm -i in the project directory?
devorizon
npm i worked.. thanks.. i thought there would be some another way in vs-code