You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use MongoDB-StORM but I am facing an issue during with the connection.
I have set my default settings in the main.swift file: MongoDBConnection.host = "localhost" MongoDBConnection.port = 27017 MongoDBConnection.ssl = false MongoDBConnection.database = "mydb"
But when I am trying to save an object, I got this error:
The operation couldn’t be completed. (StORM.StORMError error 0.)
I have tried with PerfectMongoDB directly by creating a client, then the database and then get a collection and I have no error with the same parameters.
Also, I check your code in the MongoDBStORM.swift file and I saw that when you are trying to create a MongoClient you use the MongoDBConnection.host parameter but not the MongoDBConnection.port parameter, so maybe the problem is from there.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi guys,
I was trying to use MongoDB-StORM but I am facing an issue during with the connection.
I have set my default settings in the main.swift file:
MongoDBConnection.host = "localhost"
MongoDBConnection.port = 27017
MongoDBConnection.ssl = false
MongoDBConnection.database = "mydb"
But when I am trying to save an object, I got this error:
The operation couldn’t be completed. (StORM.StORMError error 0.)
I have tried with PerfectMongoDB directly by creating a client, then the database and then get a collection and I have no error with the same parameters.
Also, I check your code in the MongoDBStORM.swift file and I saw that when you are trying to create a MongoClient you use the MongoDBConnection.host parameter but not the MongoDBConnection.port parameter, so maybe the problem is from there.
Thanks.
The text was updated successfully, but these errors were encountered: