MongoServerSelectionError: failed to handle command request "ismaster": error processing client metadata: expected app name to be composed of: <appID>:<svc>:<authProvider>, got [object Object]
I think the error shows something wrong with the appName parameter.
I first thought it was a Realm problem, but the connection string properly works in CLI (i.e. the mongo command), so I’m now thinking this is related to JS Driver. (FYI: I’m using ver 3.6.2)
will produce the same error: expected ... <appID>:<svc>:<authProvider>, got [object Object]
3. Using a plain string without colons
appName=application-0-xxxxx
This time the param was not converted to an [object Object].
The error message says it got the string instead: expected ... <appID>:<svc>:<authProvider>, got application-0-xxxxx
Again, the connection string correctly worked with CLI (the mongo command). It seems it is not working only with Node.js SDK.
Is there any solution to this? We are working on migration process that will happen on our servers using old Realm GraphQL and new MongoDB using mongoose.
The problem is that when we connect directly to the cluster, changes are not propagated to the realm so I guess we need to connect as this special mongodb realm url? However, it does not work in Node