Error in connecting mongodb with custom actions

Hi I am using mongodb to connect and got this error

I got this error message after I stopped

It was working successfully before

But then when I try again I get this error

Can anyone help, thanks

Are you running with docker-compose?

no, I use pymongo to connecting mongodb

There error message is telling you that it can’t find mongodb at 127.0.0.1:64313. If you’re convinced that it is running at that IP and port, then you should try confirming this with a command line tool. Port 64313 seems unlikely since the default is 27017 but maybe you’ve chosen to configure this as the mongo port?

I suspect that curl http://127.0.0.1:64313 will also timeout.

Hi sorry for the late reply, I am using the code on compass to connect to mongodb from pymongo, does this not work on rasa actions.py ? :cry:

I solved it, thanks :grin: