docker exec -it overleafserver bash vi /overleaf/services/web/app/src/Features/User/UserRegistrationHandler.js Goto line 117: EmailHandler.promises.sendEmail('registered', { Then add an. await. in front of it. I decided that I edit it externally and mount the fixed file into the docker container.