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

Issue with configuring Strava datasource in Grafana #41

Closed
Chandruind opened this issue May 28, 2021 · 5 comments
Closed

Issue with configuring Strava datasource in Grafana #41

Chandruind opened this issue May 28, 2021 · 5 comments

Comments

@Chandruind
Copy link

Hello All,

im getting an error while configuring a Strava datasource in Grafana as Refresh token not available, authorize datasource first message. I tried to follow some of existing issue to understand the problem but it didnt helps as one of the recommendation given to use callback domain in strava as IP address but it didnt help. please find below Grafana logs and help me how to get it sorted. Thanks in advance.

remote_addr=192.168.0.101 time_ms=7 size=26 referer=http://192.168.0.101:3000/login
t=2021-05-28T19:29:10+0530 lvl=info msg="Successful Login" logger=http.server User=admin@localhost
t=2021-05-28T19:29:39+0530 lvl=eror msg="Strava API request error" logger=plugins.backend pluginId=grafana-strava-datasource error="Auth error, status: 401 Unauthorized"
t=2021-05-28T19:29:39+0530 lvl=eror msg="Request Completed" logger=c2ontext userId=1 orgId=1 uname=admin method=POST path=/api/datasources/1/resources/auth status=500 remote_addr=192.168.0.101 time_ms=1283 size=82 referer="http://192.168.0.101:3000/datasources/edit/1/?state=&code=7b93f555988d0f97c411872960ef05bbc4df7e5a&scope=read,activity:read_all,profile:read_all,read_all"
t=2021-05-28T19:29:39+0530 lvl=eror msg="open /1-refreshToken: The system cannot find the file specified." logger=plugins.backend pluginId=grafana-strava-datasource
t=2021-05-28T19:29:39+0530 lvl=eror msg="Strava API request error" logger=plugins.backend pluginId=grafana-strava-datasource error="Refresh token not found, authorize datasource first"
t=2021-05-28T19:29:39+0530 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/1/resources/strava-api status=500 remote_addr=192.168.0.101 time_ms=3 size=97 referer="http://192.168.0.101:3000/datasources/edit/1/?state=&code=7b93f555988d0f97c411872960ef05bbc4df7e5a&scope=read,activity:read_all,profile:read_all,read_all"

@Chandruind
Copy link
Author

image

@sharkoz
Copy link

sharkoz commented May 28, 2021

Have you followed the doc ?
You need to create an app in strava first and fill in the client id and client secret provided by strava.

@Chandruind
Copy link
Author

Yes i have configured & created an app in Strava using URL - https://www.strava.com/settings/api and i got the Client ID and Client secret and using these client ID and client secret i was trying to configure the Strava Datasource but it was giving the error as mentioned above.

Kindly assist further

@Chandruind
Copy link
Author

Hi, i tried once again with deleting the datasource and reconfigured again, it is working fine with no issues.. thanks for your help..

@Bedasek
Copy link

Bedasek commented Jan 22, 2022

I provide both Client ID and Client Secret and when I click "Connect with STRAVA" button, I get following page -
url: https://www.strava.com/oauth/authorize?client_id=54783&response_type=code&redirect_uri=https://192.168.0.99:3000/datasources/edit/BMLnhMmRz&approval_prompt=force&scope=read_all,profile:read_all,activity:read_all

browser headers are localizes to czech, however you get the idea from the body:
obrazek

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