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?
2020-12-28 36304, 2020
shivam-kapila
devorizon: refrain from sharing personal info like this
2020-12-28 36336, 2020
shivam-kapila
Can you confirm that the auth token is same as in your profile section
2020-12-28 36349, 2020
devorizon
yes... it's same
2020-12-28 36325, 2020
_lucifer
devorizon: you need to configure the API url in `config.py`
2020-12-28 36350, 2020
shivam-kapila
Oh it was on dev setup. I thought in prod
2020-12-28 36344, 2020
_lucifer
i spent some time figuring this out yesterday so i thought it might be the case :)
2020-12-28 36332, 2020
_lucifer
line 118 in `listenbrainz\config.py`.
2020-12-28 36314, 2020
shivam-kapila
Similar thing happens for submitting listens on dev.
2020-12-28 36348, 2020
devorizon
my API_URL is `API_URL = 'https://api.listenbrainz.org'.. i changed it to `http://localhost` .. it worked... thanks
2020-12-28 36348, 2020
devorizon
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?
2020-12-28 36333, 2020
shivam-kapila
Umm. Stop using vscode?
2020-12-28 36347, 2020
shivam-kapila
Jk... Maybe doing npm -i in the project directory?
2020-12-28 36344, 2020
devorizon
npm i worked.. thanks.. i thought there would be some another way in vs-code