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
I try to init an agenda 5.x/6.x (I tried with both version)
I'm setting up agenda with agendash serve by express server and connect with mongodb atlast
Nodejs: 18.17
Agenda: 5.x/6.x (I tried with both version produce the same result)
Agendash: 4.x
Mongodb: Atlast
importexpressfrom'express';importAgendashfrom'agendash';import{agenda}from'./agenda/index.js';constapp=express();app.use('/',Agendash(agenda));// Mount Agendash middlewareconstport=3000;app.listen(port,()=>{console.log(`Example app listening on port ${port}`);});
I start the server, the agendash dashboard is display, then refresh it throw error like below and ended the server.
NOTES:
I already create a Jobs collections in the mongo atlast
I've tried to connect with example code from mongo and can connect successfully.
The text was updated successfully, but these errors were encountered:
I remove the collection and it work by auto create another collection...., but still don't know why it didn't work when I pass the pre-create collection in
I try to init an agenda 5.x/6.x (I tried with both version)
I'm setting up agenda with agendash serve by express server and connect with mongodb atlast
Nodejs: 18.17
Agenda: 5.x/6.x (I tried with both version produce the same result)
Agendash: 4.x
Mongodb: Atlast
My Code
agendash.ts
server.ts
I start the server, the agendash dashboard is display, then refresh it throw error like below and ended the server.
NOTES:
I already create a
Jobs
collections in the mongo atlastI've tried to connect with example code from mongo and can connect successfully.
The text was updated successfully, but these errors were encountered: