-
Notifications
You must be signed in to change notification settings - Fork 13
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
Failed to call resource error on request to endpoint "workgroupEngineVersion" #233
Comments
Thanks for all the information @evgenymarkov. I saw your data source settings at the bottom, but I just want to confirm, there is no assume role here for this data source? |
Yes, I don't use assume role here. Athena is in the same account as Grafana. |
I have a few more Athenas on other accounts. For them, I use assume role. I observe exactly the same error as for Athena in the current account. |
Thank you @evgenymarkov for the detailed information and reporting this issue. The problem seems to come from upgrading the github.com/grafana/grafana-plugin-sdk-go version dependency, so we will re-release the plugin with a downgraded version of the grafana-plugin-sdk-go. We've just released v2.9.2 to resolve this issue. Here is the information regarding reproducing the issue: I personally was only able to reproduce the issue under an Assume Role configuration for some reason. The stack trace is below:
In my case with Assume Role, it seems that the body of the request to AWS returns with nothing, making the Credentials nil around here https://github.com/aws/aws-sdk-go/blob/fba2ac82870008836efff83963d0925f6342fb00/aws/credentials/stscreds/assume_role_provider.go#L359 The previous release of the Athena plugin without this issue is v2.8.0. |
What happened:
When I open the Explore tab in Grafana and select Athena DataSource, UI shows an error:
"Failed to call resource"
At this time in the console I see failed request:
POST https://grafana.my-domain.example/api/datasources/uid/{datasource-id}/resources/workgroupEngineVersion 500
In the Grafana logs, I see the following messages:
It looks like the plugin is trying to get the Athena Engine Version and crashes when trying to dereference a null pointer.
What you expected to happen:
I expect Grafana to launch the Exlore tab successfully with no error and let me query Athena DB.
How to reproduce it (as minimally and precisely as possible):
Screenshots
Anything else we need to know?:
Environment:
IAM Policy:
Athena data source settings:
Additional information:
Queries to Athena work well. Data from S3 buckets is shown in the Grafana Explore interface.
The text was updated successfully, but these errors were encountered: