TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
var http = require('http');
http.get(`http://api.openweathermap.org/data/2.5/weather?q=${city}?lang=ru?units=metric&APPID=My_API_Key`, function(resp){
var body = ''
resp.on('data', function(data){
body += data;
});
resp.on('end', function(){
var json = JSON.parse(body);
console.log(body)
}
var http = require('http');
http.get(`http://api.openweathermap.org/data/2.5/weather?q=${encodeURIComponent(city)}?lang=ru?units=metric&APPID=My_API_Key`, function(resp){
var body = ''
resp.on('data', function(data){
body += data;
});
resp.on('end', function(){
var json = JSON.parse(body);
console.log(body)
}