Step: The issue is happening creating the connection
Description:
After having successfully registered my mongodb source (atlas cluster) and my bigquery destination as well (with gcs stating), I try to connect both but it keep telling me the same issue:
Failed to fetch schema. Please try again.
I have multiple databases on this cluster, some of them connect well (so it’s not a connection issue), but other not and throw me this error. You will find in attachment the logs of the worker, but in summary, the logs hit me with the following error :
Exception in thread "main" com.mongodb.MongoCommandException: Command failed with error 17276 (Location17276): 'Invalid $project :: caused by :: Use of undefined variable: inc' on server XXX.mongodb.net:27017.
I can’t find why the connection works on some database but not on others and also where does this error comes from. Do you have any idea about how to solve my problem ?
It could indeed have been a good lead ! But after further tests using small scripts, the user is perfectly able to list collections from the relevant databases and access data.
My bad, I didn’t make myself clear in my previous post
What I was saying was that, on the contrary, as my user had the correct permissions to access data using other methods, it means that my Airbyte problem did not come from there.
I’m unfortunately still facing the issue and cannot fetch my databases schemas.
I’ve just tested again after upgrading my whole environment with a fresh new install :
airbyte version: 0.39.37-alpha
source: source-mongodb-v2:v0.1.15
destination: destination-bigquery:v1.1.11
Sadly, I’m facing the exact same error :
com.mongodb.MongoCommandException: Command failed with error 17276 (Location17276): ‘Invalid $project :: caused by :: Use of undefined variable: inc’ on server XXX.mongodb.net:27017.
@Clovis on second thought it looks like we have several issues with MongoDB failing to fetch the schema, but they are all slightly different. Are you using nginx or a proxy in your configuration?
Hi @natalyjazzviolin ! Sorry for the delay. Indeed, this issue was not actually related to the ticket.
It appears that the fetch issue was related to some mongoDB documents comporting keys containing special characters (like document keys beginning with $ for example).
I had to find a workaround as it was critical for our team to extract data quickly and I did not try since then to test again with airbyte.