skip to Main Content

Javascript – It is giving error 401 and my hyper is pointing out the temp variable as the problem. any suggestions?

const express = require("express"); const https = require("https"); const bodyParser = require("body-parser"); const app = express(); app.use(bodyParser.urlencoded({extended: true})); app.get("/", function(req, res){ res.sendFile(__dirname + "/index.html"); }); app.post("/", function(req, res){ const query = req.body.cityname; const apikey = "be542b6232b2bc2d159d89e25bf419fc"; const unit = "metric";…

VIEW QUESTION
Back To Top
Search