Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unauthorized #317

Open
fehim-proses opened this issue Jan 26, 2022 · 3 comments
Open

unauthorized #317

fehim-proses opened this issue Jan 26, 2022 · 3 comments

Comments

@fehim-proses
Copy link

error fetching dashboard BX3Gpdbnz: error obtaining dashboard from http://localhost:3000/api/dashboards/uid/BX3Gpdbnz. Got Status 401 Unauthorized, message: {
"message": "Unauthorized"
}

I got this message

@khaitun1998
Copy link

You should create api token in grafana, then pass it into url as query string

Ex:

http://localhost:3000/api/dashboards/uid/BX3Gpdbnz?apitoken={grafana_token}

@ObserveLite
Copy link

@khaitun1998 yes but the Grafana Open Source doesn't give the API token for Users
the API token is only available in Enterprise and Grafana cloud.

@supamongkonR
Copy link

supamongkonR commented Apr 9, 2024

@khaitun1998 yes but the Grafana Open Source doesn't give the API token for Users the API token is only available in Enterprise and Grafana cloud.

@fehim-proses

You can generate you api key

Go to Administration -> Users and access -> Service and accounts -> Add service and account -> Select Roles -> Add Service account token (API Key)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants