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

[Bug] Auth Token is not refreshed when using plugin with SFDC API #999

Open
camsellem opened this issue Sep 23, 2024 · 0 comments
Open

[Bug] Auth Token is not refreshed when using plugin with SFDC API #999

camsellem opened this issue Sep 23, 2024 · 0 comments

Comments

@camsellem
Copy link

Describe the bug

I'm using the Infinity plugin to query Salesforce API. I'm experiencing the following bug - After setting up the datasource and creating my dashboard, everything works just fine. Although if I come back 24/48 hours after on the dashboard I'm getting a 401 unauthorized error on every panels. To fix it I need to edit the datasource and perform a health check - then it works again. My assumption is that my token expires and it's not refreshed within the dashboard hence the need of editing the datasource again.

Steps to reproduce

Create a connected App in SFDC to access the REST API
Create an Infinity Datasource
Authenticate using OAuth2 using Client ID and Client Secret
Create a Panel and retrieve some SFDC Data
Open the dashboard again a day or two after
Error should pop up
Edit the datasource and perforce a health check to refresh the token
Dashboard is ok again

Note: bugs will be fixed only if enough information provided to reproduce the issue

Sample Data

Provide a link for sample data, or provide sample data bellow

Screenshots

Image

If applicable, add screenshots to help explain your problem.

Version Details:

  • Grafana version : 11.2
  • Plugin version : 2.9.6

Additional context

Add any other context about the problem here.

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

1 participant