Solvedagenda Agenda cannot initialize with MongoDB Unified Topology Design

If I set { useUnifiedTopology: true } in MongoDB connection options, Agenda will failed with error:

  if (s.topology.connections().length === 0) {

TypeError: s.topology.connections is not a function

I am using these versions:

  "dependencies": {
    "agenda": "^2.3.0",
    "mongodb": "^3.5.2"

You can learn more about unified topology at

Thanks for your time.

18 Answers

βœ”οΈAccepted Answer

Released in v3.0.0 πŸŽ‰

Related Issues:

agenda typing issue
I can confirm this works with node 14.16.0 and agenda 4.1.2 Faced this issue today after updating fr...
agenda Agenda cannot initialize with MongoDB Unified Topology Design
Released in v3.0.0 πŸŽ‰ If I set { useUnifiedTopology: true } in MongoDB connection options ...
n8n Reverse Proxy
Forget that found a helpful thread on server-sent events and nginx I added proxy_buffering off; prox...
bull Error: Could not remove job
@simpleshadow it has been a major pain point for my use case unfortunately along with this ...
bull Empty and clean jobs
a solution I used that doesnt involve adding another library is this: Hi I'm using bull in my Node.j...
bull Possible memory leak if too many process
It's a property not a method. node: v6.9.5 bull: ^3.0.0-alpha.1 It will throw this error (node:83132...
bull Share redis client across queues created by bull() calls?
Thanks @manast for the quick fix! That definitely helped! Locally it reduced my usage from 26 to 18 ...
bull Missing lock for job
We also have this issue but without any specific configuration (just host and port) no custom redis ...
horizon Timeout for long running task
I already found a solution to my problem Hi I have a task that will take a few minutes to complete ...
horizon Jobs get processed multiple times
After delving into Horizon Redis Queues Lua script and redis-cli I finally determined what my proble...
horizon can this be used to scale job processing to multiple servers?
So I was wondering this as well since we host our Laravel app on Heroku Heroku has the ability to ea...
horizon Multiple horizon instances on one server not working
I was facing a similar issue and what I did was to set up env variables to represent each worker I w...
huey Disable root logger in consumer
My workaround to avoid Huey's logging configuration: I'm converting an existing code base to use Hue...
airflow Negsignal.SIGKILL error on macOS
It's not completely related but I had a different error message and Google lead me here ...
airflow Migrate from 2.1.4 to 2.2.0
SQL we used from our deployment playbook to clean up these tables Obviously a disclaimer on running ...
airflow Airflow webserver not starting with SQLAlchemy==1.3.16
The problem seems to be SQLAlchemy version 1.3.16 which was released 8 hours ago i downgraded to 1.3...
airflow scheduler gets stuck without a trace
We just saw this on 2.0.1 when we added a largish number of new DAGs (We're adding around 6000 DAGs ...
airflow Add Production-ready docker compose for the production image
I have prepared some Dockerfiles with some common configuration Description In order to use the prod...
devextreme reactive How to change table border styles
Try this It worked for me. React Grid I checked the doc see how to style or create a custom theme fo...
devextreme reactive Fixed Header and Left / Right Column
Thank you for the clarification In your case you need to implement the VirtualTable plugin instead o...