データをMongolabに送信するPythonプログラムに取り組んでいますが、奇妙な例外に遭遇しています:
mongoengine.connection.ConnectionError: Cannot connect to database mongodb://<user>:
<password>@ds035617.mongolab.com:35617/<mydatabase>:
could not connect to localhost:27017: [Errno 10061] No connection could be made
because the target machine actively refused it
これは問題のあるコードです:
from mongoengine import *
connect('tablename', "mongodb://<user>:<password>@ds035617.mongolab.com:35617/<mydatabase>")
誰が何が間違っているかについて何か考えがありますか?