HELP! I',m having this issue: MongoParseError: URI malformed, cannot be parsed

MongoParseError: URI malformed, cannot be parsed
at parseConnectionString (C:\xampp\htdocs\quran-for-memorization-master\node_modules\mongodb\lib\core\uri_parser.js:560:21)
at connect (C:\xampp\htdocs\quran-for-memorization-master\node_modules\mongodb\lib\operations\connect.js:282:3)
at C:\xampp\htdocs\quran-for-memorization-master\node_modules\mongodb\lib\mongo_client.js:223:5
at maybePromise (C:\xampp\htdocs\quran-for-memorization-master\node_modules\mongodb\lib\utils.js:662:3)
at MongoClient.connect (C:\xampp\htdocs\quran-for-memorization-master\node_modules\mongodb\lib\mongo_client.js:219:10)
at Function.MongoClient.connect (C:\xampp\htdocs\quran-for-memorization-master\node_modules\mongodb\lib\mongo_client.js:442:22)
at Server. (C:\xampp\htdocs\quran-for-memorization-master\app.js:68:17)
at Object.onceWrapper (node:events:509:28)
at Server.emit (node:events:390:28)
at emitListeningNT (node:net:1364:10)

Node.js v17.2.0
[nodemon] app crashed - waiting for file changes before starting…

URI is the connection string you pass to the mongo client to connect to the server. It resolves to a set of IPs finally, that link to your cluster and nodes.

Can you show the code used to connect?

Hi sir, thank you for noticing my post. Below is my code how I use to connect

const Express = require("express");
const BodyParser = require("body-parser");
const MongoClient = require("mongodb").MongoClient;
const ObjectId = require("mongodb").ObjectID;
const path = require('path');
require('dotenv').config()

const PORT = process.env.PORT;
const HOST = process.env.HOST;

const CONNECTION_URL = process.env.DATABASE_HOST;
const DATABASE_NAME = process.env.DATABASE_NAME;

var app = Express();
var cookieParser = require('cookie-parser');

app.use(cookieParser());
app.use(BodyParser.json());
app.use(BodyParser.urlencoded({ extended: true }));

// Define for API
var database, collection;

// Test Cookies
app.get('/test', function(req, res){
    res.cookie('name', 'express').send('cookie set'); //Sets name = express
});

// Hello World
app.get('/hello', (req, res) => {
    res.send('Hello World!');
});

app.get('/', (req, res) => {
    res.sendFile(path.join(__dirname, './routes/index.html'));
})

app.get('/test', (req, res) => {
    res.sendFile(path.join(__dirname, './routes/test.html'));
})

// Get Pages
app.get("/pages", (request, response) => {
    collection.find({}).toArray((error, result) => {
        if(error) {
            return response.status(200).send(error);
        }
        response.send(result);
    });
});

// Get Specific Page
app.get("/page/:pageid", (request, response) => {
    var pageid = Number(request.params.pageid);
    response.cookie('page_id', pageid, {expire: 3600000 + Date.now()});

    collection.findOne({ page_id: pageid }).then((error, result) => {
        if(error) {
            return response.status(200).send(error);
        }
        console.log(result);
        response.send(result);
    });
});

app.listen(PORT, HOST, () => {
    
    MongoClient.connect(CONNECTION_URL, { 
        useNewUrlParser: true, 
        useUnifiedTopology: true 
    }, (error, client) => {
        if(error) {
            throw error;
        }
        database = client.db(DATABASE_NAME);
        collection = database.collection("pages");
        console.log("Connected to `" + DATABASE_NAME + "`!");
    });
});

app.use(Express.static(__dirname + '/public'));

Thank you in advance

And a screenshot of the .env showing the database URI, just blur private details.