node-course-v3-code
node-course-v3-code copied to clipboard
web-server: unable get geocode and forecast using request() in windows
While accessing via address bar APIs( https://api.mapbox.com/geocoding/v5/mapbox.places/..., https://api.darksky.net/forecast/....) working fine.
While using web-server project code then in request({ url, json: true }, (error, { body} = {}) => {...... body is undefined
Error: connect ETIMEDOUT 13.227.238.179:443
darksky does not give free access to API development and there is no sing up available anyy more , and by using the same url in teaching course i get the error below { code: 401, error: 'permission denied' } when use the response.body
code