Hello, the script is working on VS code, but when i run it on pythonanywhere it show me this error, what i'm trying to do is retrieving a json sent in the chat via discord API (not websocket)
Traceback (most recent call last):
File "/home/ScriptCordBOT1/mysite/PY_RQ_VARIABLE_CH.py", line 377, in <module>
tmp = get_commands()
File "/home/ScriptCordBOT1/mysite/PY_RQ_VARIABLE_CH.py", line 56, in get_commands
resp_conv = requests.get(file_url, headers=header).json()
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.9/site-packages/simplejson/__init__.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.9/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
When i try to print the response it return this
<Response [401]>
apparently cdn.discordapp.com is whitelisted so i don't understand why it return Unauthorized 401 error, btw i use the same account token for a ton of other action in the same server/channel so it's not a problem in the header authorization