Need Help with a basic Node and Express exercise

So, i have been sitting on this exercise for a few hours now. Even though the code editor shows 0 errors, when I execute the following code in web browser it returns the error TypeError: Cannot read property 'skyColor' of undefined and the console returns the error POST http://localhost:3000/answer 500 (Internal Server Error). Can someone kindly help me out

let express = require("express");
let our_app= express();
our_app.get(express.urlencoded({extended:false}));
our_app.get("/", function(req,res){
    res.send(`
            <form action="/answer" method="POST">
                <h1>What color is the sky on a clear bight day???</h1>
                <input type="text" autocomplete="off" name="skyColor">
                <button type="submit">Submit Answer</button>
            </form>
            `)
});

our_app.get("/answer", function(req,res){
    res.send("Sorry, you are not permitted to access this page")
});
our_app.post("/answer", function(req,res){
    if(req.body.skyColor.toUpperCase()=="BLUE"){
        res.end(`<p>Congratulations, You guessed the answer right</p>
                <a href="/">Go back to Home Page</a>
                `);
    } else{
        res.end(`<p>Congratulations, You guessed the answer right</p>
        <a href="/">Go back to Home Page</a>
        `);
    }
    
});
our_app.listen(3000);

Have you tried using the square bracket notation for getting the skyColor attribute from the request body?
i.e req.body['skyColor']

It still returns the same error @anantakrroy

try grabbing the value from the form in a variable,

let color = req.body.skyColor;

idk everything seems fine to me

@prayamajhi85 i have noticed that terminal is giving me TypeError: Cannot read property ‘skyColor’ of undefined error.

@johnpathadan There is no body sent in the request. The form is not being sent to the server correctly.