| 11/06/2020 00:23:01 | Request failed for http://api.openweathermap.org returned code 404. Truncated server response: {"cod":"404","message":"city not found"} (use muteHttpExceptions option to examine full response) (file Code.gs, line 392) |
var url = Utilities.formatString(
'http://api.openweathermap.org/data/2.5/weather?APPID=%s&q=%s',
encodeURIComponent(OPEN_WEATHER_MAP_API_KEY),
encodeURIComponent(location));
try {
var response = UrlFetchApp.fetch(url);
}
catch(e) {
Logger.log("City not found: " + location);
}
if (response.getResponseCode() != 200) {

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/qLfQzFD0nvw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/PlzJy000000000000000000000000000000000000000000000QBRUKA00X_aGam73QG-HvnVWHjE_Ag%40sfdc.net.
|