I am trying to create a custom mongodb tracker but i keep getting this error.
File “c:\python38\lib\site-packages\rasa\core\tracker_store.py”, line 1109, in _load_from_module_name_in_endpoint_config
- return tracker_store_class(*
TypeError: init() got an unexpected keyword argument ‘domain’
i am assuming this is when the tracker_store.py is calling the custom tracker but I’m not sure why domain is giving an error.
Are there any examples for a custom MongoDB Tracker?
The reason i was doing this was to add the username and passwords for MongoDB Tracker in a secure way to use this for production environments.
Are there any better ways to do this?
Hey @jaison, which version of Rasa Open Source are you on?
I am on 2.0 version. Was able to get the custome_tracker working now. Thanks for the enquiry though
I was able to get the Tracker working.
I basically took the mongo tracker code from tracker_store.py and removed all the other functions and added an import
from rasa.core.tracker_store import TrackerStore
for the endpoints.yml this was my file
db: “database name”
the mongo_store.py needs to be in the root directory and my class inside is called mongo_tracker
If anyone has doubts i can paste the mongo_tracker code as well.
Did not want to paste a code junk without any need.