MongoDB DNS error

does running kill 1 in shell fix it? If so, it’s probably something to do with a rate limit. You could do in a try-catch:

const { get } = require("https");
get("https://cd594a2f-0e9f-48f1-b3eb-e7f6e8665adf.id.repl.co/", () =>
  process.kill(1)
);

This restarts your repl to change the IP, then pings a website which then pings your repl back instantly to make your repl run.

2 Likes