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

Google script json parse issue

I used this code to parse my webrequest response: for (var [key,val] of Object.entries(jsonObj)) { console.log("Key="+key); console.log("Value="+val); } Its working for one of my url but for another one I get: {members=[Ljava.lang.Object;@3e0dc74, list_id=xxxxx, total_items=2.0, _links=[Ljava.lang.Object;@610c2a56} The response is ok but…

VIEW QUESTION
Back To Top
Search