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
{{ message }}
This repository was archived by the owner on Nov 3, 2025. It is now read-only.
When I run the code I get the above error. It is because, pymongo doesn't have Connection attribute. This will be fixed if we replace it with MongoClient as shown below
class MongoDBHandler(RequireJSONFormatter):
When I run the code I get the above error. It is because, pymongo doesn't have Connection attribute. This will be fixed if we replace it with MongoClient as shown below
class MongoDBHandler(RequireJSONFormatter):
has to be changed to
self.connection = pymongo.MongoClient(host, port)