tried creating function to request for weather data on front end submit but getting econnrefused