'Unable to send request to the grafana using basic authentication

I'm using Grafana free version (v8.5.0). I'm using python 3.7 and sending requests to Grafana. But it is not working. Below is my Code.

import requests

import json

base_url="https://MY_USERNAME:[email protected]"

resp = requests.get(base_url+"/app/dashboards/home", verify=True)

data = resp.json()

print(data)

Output:

{'message':'invalid username or password', 'traceId':'1710926f6a9a7120'}

Thanks In Advance...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source