-
Notifications
You must be signed in to change notification settings - Fork 6
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
Comments
Hi, Thank you for your report
It is possible to remove version info by removing ‘
SetServerAPIOptions(serverAPI)’ at
https://github.com/haohanyang/mongodb-datasource/blob/master/pkg/plugin/datasource.go#L57
I may soon remove this info to support older versions of MongoDB
Haohan Yang
…On Mon, Oct 7, 2024 at 4:10 PM Alexei Kounine ***@***.***> wrote:
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
<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.png (view on web)
<https://github.com/user-attachments/assets/ae177d39-4cae-450b-ab0a-09744235e434>
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!
—
Reply to this email directly, view it on GitHub
<#3>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI7IINUAW6C4RNVRHZNFJJDZ2KI5RAVCNFSM6AAAAABPQA6UVOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3TANJWGA4DGMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
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! |
Hi, I have merged the PR to remove the server info. You can now download the build directly from GitHub CI. |
@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. |
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'
: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!
The text was updated successfully, but these errors were encountered: