diff --git a/src/core/production_factor.jl b/src/core/production_factor.jl index 51b8c18e8..ab7463016 100644 --- a/src/core/production_factor.jl +++ b/src/core/production_factor.jl @@ -72,7 +72,7 @@ function get_production_factor(wind::Wind, latitude::Real, longitude::Real, time resource = [] try @info "Querying Wind Toolkit for resource data ..." - r = HTTP.get(url; retries=5) + r = HTTP.get(url, ["User-Agent" => "REopt.jl"]; retries=5) if r.status != 200 throw(@error("Bad response from Wind Toolkit: $(response["errors"])")) end diff --git a/src/core/utils.jl b/src/core/utils.jl index 029050626..1357531f6 100644 --- a/src/core/utils.jl +++ b/src/core/utils.jl @@ -461,7 +461,7 @@ function call_pvwatts_api(latitude::Real, longitude::Real; tilt=latitude, azimut try @info "Querying PVWatts for production factor and ambient air temperature... " - r = HTTP.get(url, keepalive=true, readtimeout=10) + r = HTTP.get(url, ["User-Agent" => "REopt.jl"]; keepalive=true, readtimeout=10) response = JSON.parse(String(r.body)) if r.status != 200 throw(@error("Bad response from PVWatts: $(response["errors"])"))