Refresh token not found error
See original GitHub issueHi,
This looks to be a great plugin but I am having trouble connecting to the Strava API.
I am running a grafana server locally in a docker container but I am getting the following error:
Refresh token not found, authorize datasource first
I have done the following:
- Install the plugin in the docker container with the following command
grafana-cli plugins install grafana-strava-datasource
- Restart the docker container
- Create a directory
/var/lib/grafana/strava
- Define an environment variable
export GF_STRAVA_DS_DATA_PATH=/var/lib/grafana/strava/
- Add a datasource specifying the
Client ID
andClient Secret
from an app created in my Strava account - I get the following messages
Do you know how I can solve this issue please?
Issue Analytics
- State:
- Created 3 years ago
- Comments:33 (18 by maintainers)
Top Results From Across the Web
How do I fix the error "Refresh token missing"?
This error may occur if you have your inbox setup and connected with Google Apps. ... In some rare cases, you may run...
Read more >Understanding Refresh Tokens - Auth0
To solve this problem, OAuth 2.0 introduced an artifact called a refresh token. ... Some of the reasons a refresh token may no...
Read more >Refresh token not working. - Constant Contact Community
The two most common reasons for expired refresh token errors are: 1) When you refresh, you get both a new access token and...
Read more >How to handle "refresh token is not available"? - Stack Overflow
1 Answer 1 ... Make sure that you are using access_type=offline when you are authenticating the user (Making him go through OAuth2 cycle)....
Read more >Confusing error message on failed refresh token request
Eventually I found I could successfully refresh the access token by supplying a scope parameter with my custom scope based on it being ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey, I’m still getting errors trying to work with the strava datasource.
When I add it it says everything is fine, but when trying to use it I get:
Error status: 401 Unauthorized
With the following logsLooking in the logs when adding the data source i get the following:
But in the gui it reports as a success:
I’m running on grafana version
v9.1.2 (3c13120cde)
I changed a fallback for data directory, now if
GF_STRAVA_DS_DATA_PATH
is not set, files will be created in default OS cache directory (understrava-datasource
subfolder). Hope, I will fix issues when token is writing into the file in the root directory. Changes were made in 22a87da1dd4f8b4a17d865e9dfb5d610e3fef1f0 and 7eaddba777394ecc13142befdc2f8a908736e803.