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

Failed to query: (FailedToParse) unrecognized field 'apiVersion' #3

Closed
kou9 opened this issue Oct 7, 2024 · 4 comments · Fixed by #4
Closed

Failed to query: (FailedToParse) unrecognized field 'apiVersion' #3

kou9 opened this issue Oct 7, 2024 · 4 comments · Fixed by #4

Comments

@kou9
Copy link

kou9 commented Oct 7, 2024

Hi,

I'm happy to have found this plugin which seems to solve the angular problem of the plugin this one is based on (JamesOsgood/mongodb-grafana#143). So thank you very much for that!

I am running into an issue which could be related to the fact that I am using an older mongodb version (4.4.18, I cannot upgrade for HW reasons). Whichever query I try I always get the error Failed to query: (FailedToParse) unrecognized field 'apiVersion':

image

Is it because the plugin is sending an apiVersion field to mongo? Is there a way to not send this field? I'm also trying to find a solution on the mongo side but no luck so far. I am running Grafana 10.4.0.

Thank you again!

@haohanyang
Copy link
Owner

haohanyang commented Oct 7, 2024 via email

@kou9
Copy link
Author

kou9 commented Oct 7, 2024

Ah ok indeed, this should do the trick. I need to recompile the plugin myself then (I followed your doc and just downloaded the build with artifcats). Thank you for the fast response!

@haohanyang
Copy link
Owner

Hi, I have merged the PR to remove the server info. You can now download the build directly from GitHub CI.

@kou9
Copy link
Author

kou9 commented Oct 8, 2024

@haohanyang Thank you. It did the trick! I confirm that without the SetServerAPIOptions(serverAPI) line, the query now works as expected and doesn't throw any exception anymore.

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

Successfully merging a pull request may close this issue.

2 participants