The text in my api results is empty

  • 2
  • Question
  • Updated 2 years ago
The Api for the 10 day forecast is returning empty results, this is the returned text when i call the api:  .  This was working perfectly this morning :(


{
  "response": {
"version":"0.1", "termsofService":"http://www.wunderground.com/weather/api/d/terms.html", "features": { "forecast10day": 1 } } , "forecast":{ "txt_forecast": { "date":"11:59 PM CET", "forecastday": [ { "period":0, "icon":"partlycloudy", "icon_url":"http://icons.wxug.com/i/c/k/partlycloudy.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0" } , { "period":1, "icon":"nt_", "icon_url":"http://icons.wxug.com/i/c/k/nt_.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0" } , { "period":2, "icon":"clear", "icon_url":"http://icons.wxug.com/i/c/k/clear.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0" } , { "period":3, "icon":"nt_", "icon_url":"http://icons.wxug.com/i/c/k/nt_.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0" } , { "period":4, "icon":"partlycloudy", "icon_url":"http://icons.wxug.com/i/c/k/partlycloudy.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0" } , { "period":5, "icon":"nt_", "icon_url":"http://icons.wxug.com/i/c/k/nt_.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0" } , { "period":6, "icon":"partlycloudy", "icon_url":"http://icons.wxug.com/i/c/k/partlycloudy.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0" } , { "period":7, "icon":"nt_", "icon_url":"http://icons.wxug.com/i/c/k/nt_.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0" } , { "period":8, "icon":"clear", "icon_url":"http://icons.wxug.com/i/c/k/clear.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0" } , { "period":9, "icon":"nt_", "icon_url":"http://icons.wxug.com/i/c/k/nt_.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0" } , { "period":10, "icon":"mostlycloudy", "icon_url":"http://icons.wxug.com/i/c/k/mostlycloudy.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"20" } , { "period":11, "icon":"nt_", "icon_url":"http://icons.wxug.com/i/c/k/nt_.gif", "title":"", "fcttext":"", "fcttext_metric":"", "pop":"0"
Photo of firstmalta

firstmalta

  • 1 Post
  • 0 Reply Likes
  • sad

Posted 2 years ago

  • 2
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
There was a quick issue loading forecasts but was fixed right away.  Is this still happening?  What is the URL where this is happening?
Photo of dakjr

dakjr

  • 5 Posts
  • 0 Reply Likes
@Brenden, I'm experiencing the same issue as @firstmalta.  See my ticket submission yesterday: https://apicommunity.wunderground.com/weatherapi/topics/api-issue-when-requesting-using-text-forecas...

It's been happening intermittently for weeks now, and yes, continues to happen.

Thanks,
-dakjr
Photo of Jon Theis

Jon Theis

  • 2 Posts
  • 0 Reply Likes
@Brendan, we are experiencing similar issues today - specifically with incorrect URLs for icons being returned.  As is shown in the example above, the icon URLs are often http://icons.wxug.com/i/c/k/nt_.gif or http://icons.wxug.com/i/c/k/.gif.  The issue appears to be intermittent.  When attempting to retrieve data for a single location, one call will return JSON with the bad icon URLs, but subsequent calls for the same location will return correct icon URLs.  For example, below is a the JSON that was returned when we called https://api.wunderground.com/api/<api_key>/conditions/forecast/q/33626.json &nbsp;(note the&nbsp;http://icons.wxug.com/i/c/k/nt_.gif icon_url values. &nbsp;Re-executing this call a few minutes later returned data containing correct icon_url values.<br>

{
  "response": {
  "version":"0.1",
  "termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
  "features": {
  "conditions": 1
  ,
  "forecast": 1
  }
	}
  ,	"current_observation": {
		"image": {
		"url":"http://icons.wxug.com/graphics/wu2/logo_130x80.png",
		"title":"Weather Underground",
		"link":"http://www.wunderground.com"
		},
		"display_location": {
		"full":"Tampa, FL",
		"city":"Tampa",
		"state":"FL",
		"state_name":"Florida",
		"country":"US",
		"country_iso3166":"US",
		"zip":"33626",
		"magic":"1",
		"wmo":"99999",
		"latitude":"28.05999947",
		"longitude":"-82.61000061",
		"elevation":"4.9"
		},
		"observation_location": {
		"full":"Twin Branch Acres, Tampa, Florida",
		"city":"Twin Branch Acres, Tampa",
		"state":"Florida",
		"country":"US",
		"country_iso3166":"US",
		"latitude":"28.050570",
		"longitude":"-82.632698",
		"elevation":"16 ft"
		},
		"estimated": {
		},
		"station_id":"KFLTAMPA190",
		"observation_time":"Last Updated on December 2, 3:47 PM EST",
		"observation_time_rfc822":"Fri, 02 Dec 2016 15:47:10 -0500",
		"observation_epoch":"1480711630",
		"local_time_rfc822":"Fri, 02 Dec 2016 15:47:17 -0500",
		"local_epoch":"1480711637",
		"local_tz_short":"EST",
		"local_tz_long":"America/New_York",
		"local_tz_offset":"-0500",
		"weather":"Partly Cloudy",
		"temperature_string":"76.1 F (24.5 C)",
		"temp_f":76.1,
		"temp_c":24.5,
		"relative_humidity":"22%",
		"wind_string":"Calm",
		"wind_dir":"East",
		"wind_degrees":95,
		"wind_mph":0.2,
		"wind_gust_mph":"2.5",
		"wind_kph":0,
		"wind_gust_kph":"4.0",
		"pressure_mb":"1019",
		"pressure_in":"30.10",
		"pressure_trend":"-",
		"dewpoint_string":"34 F (1 C)",
		"dewpoint_f":34,
		"dewpoint_c":1,
		"heat_index_string":"NA",
		"heat_index_f":"NA",
		"heat_index_c":"NA",
		"windchill_string":"NA",
		"windchill_f":"NA",
		"windchill_c":"NA",
		"feelslike_string":"76.1 F (24.5 C)",
		"feelslike_f":"76.1",
		"feelslike_c":"24.5",
		"visibility_mi":"10.0",
		"visibility_km":"16.1",
		"solarradiation":"490",
		"UV":"1.0","precip_1hr_string":"0.00 in ( 0 mm)",
		"precip_1hr_in":"0.00",
		"precip_1hr_metric":" 0",
		"precip_today_string":"0.00 in (0 mm)",
		"precip_today_in":"0.00",
		"precip_today_metric":"0",
		"icon":"partlycloudy",
		"icon_url":"http://icons.wxug.com/i/c/k/partlycloudy.gif",
		"forecast_url":"http://www.wunderground.com/US/FL/Tampa.html",
		"history_url":"http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KFLTAMPA190",
		"ob_url":"http://www.wunderground.com/cgi-bin/findweather/getForecast?query=28.050570,-82.632698",
		"nowcast":""
	}
		,
	"forecast":{
		"txt_forecast": {
		"date":"",
		"forecastday": [
		{
		"period":0,
		"icon":"partlycloudy",
		"icon_url":"http://icons.wxug.com/i/c/k/partlycloudy.gif",
		"title":"",
		"fcttext":"",
		"fcttext_metric":"",
		"pop":"0"
		}
		,
		{
		"period":1,
		"icon":"nt_",
		"icon_url":"http://icons.wxug.com/i/c/k/nt_.gif",
		"title":"",
		"fcttext":"",
		"fcttext_metric":"",
		"pop":"0"
		}
		,
		{
		"period":2,
		"icon":"mostlycloudy",
		"icon_url":"http://icons.wxug.com/i/c/k/mostlycloudy.gif",
		"title":"",
		"fcttext":"",
		"fcttext_metric":"",
		"pop":"0"
		}
		,
		{
		"period":3,
		"icon":"nt_",
		"icon_url":"http://icons.wxug.com/i/c/k/nt_.gif",
		"title":"",
		"fcttext":"",
		"fcttext_metric":"",
		"pop":"0"
		}
		,
		{
		"period":4,
		"icon":"mostlycloudy",
		"icon_url":"http://icons.wxug.com/i/c/k/mostlycloudy.gif",
		"title":"",
		"fcttext":"",
		"fcttext_metric":"",
		"pop":"2"
		}
		,
		{
		"period":5,
		"icon":"nt_",
		"icon_url":"http://icons.wxug.com/i/c/k/nt_.gif",
		"title":"",
		"fcttext":"",
		"fcttext_metric":"",
		"pop":"0"
		}
		,
		{
		"period":6,
		"icon":"chancerain",
		"icon_url":"http://icons.wxug.com/i/c/k/chancerain.gif",
		"title":"",
		"fcttext":"",
		"fcttext_metric":"",
		"pop":"24"
		}
		,
		{
		"period":7,
		"icon":"nt_",
		"icon_url":"http://icons.wxug.com/i/c/k/nt_.gif",
		"title":"",
		"fcttext":"",
		"fcttext_metric":"",
		"pop":"0"
		}
		]
		},
		"simpleforecast": {
		"forecastday": [
		{"date":{
	"epoch":"1480698000",
	"pretty":"12:00 PM EST on December 02, 2016",
	"day":2,
	"month":12,
	"year":2016,
	"yday":336,
	"hour":12,
	"min":"00",
	"sec":0,
	"isdst":"0",
	"monthname":"December",
	"monthname_short":"Dec",
	"weekday_short":"Fri",
	"weekday":"Friday",
	"ampm":"PM",
	"tz_short":"EST",
	"tz_long":"America/New_York"
},
		"period":1,
		"high": {
		"fahrenheit":"76",
		"celsius":"24"
		},
		"low": {
		"fahrenheit":"57",
		"celsius":"14"
		},
		"conditions":"Partly Cloudy",
		"icon":"partlycloudy",
		"icon_url":"http://icons.wxug.com/i/c/k/partlycloudy.gif",
		"skyicon":"",
		"pop":0,
		"qpf_allday": {
		"in": null,
		"mm": null
		},
		"qpf_day": {
		"in": null,
		"mm": null
		},
		"qpf_night": {
		"in": null,
		"mm": null
		},
		"snow_allday": {
		"in": null,
		"cm": null
		},
		"snow_day": {
		"in": null,
		"cm": null
		},
		"snow_night": {
		"in": null,
		"cm": null
		},
		"maxwind": {
		"mph": 0,
		"kph": 0,
		"dir": "",
		"degrees": 0
		},
		"avewind": {
		"mph": 0,
		"kph": 0,
		"dir": "",
		"degrees": 0
		},
		"avehumidity": 0,
		"maxhumidity": 0,
		"minhumidity": 0
		}
		,
		{"date":{
	"epoch":"1480784400",
	"pretty":"12:00 PM EST on December 03, 2016",
	"day":3,
	"month":12,
	"year":2016,
	"yday":337,
	"hour":12,
	"min":"00",
	"sec":0,
	"isdst":"0",
	"monthname":"December",
	"monthname_short":"Dec",
	"weekday_short":"Sat",
	"weekday":"Saturday",
	"ampm":"PM",
	"tz_short":"EST",
	"tz_long":"America/New_York"
},
		"period":2,
		"high": {
		"fahrenheit":"78",
		"celsius":"26"
		},
		"low": {
		"fahrenheit":"63",
		"celsius":"17"
		},
		"conditions":"Mostly Cloudy",
		"icon":"mostlycloudy",
		"icon_url":"http://icons.wxug.com/i/c/k/mostlycloudy.gif",
		"skyicon":"",
		"pop":0,
		"qpf_allday": {
		"in": null,
		"mm": null
		},
		"qpf_day": {
		"in": null,
		"mm": null
		},
		"qpf_night": {
		"in": null,
		"mm": null
		},
		"snow_allday": {
		"in": null,
		"cm": null
		},
		"snow_day": {
		"in": null,
		"cm": null
		},
		"snow_night": {
		"in": null,
		"cm": null
		},
		"maxwind": {
		"mph": 0,
		"kph": 0,
		"dir": "",
		"degrees": 0
		},
		"avewind": {
		"mph": 0,
		"kph": 0,
		"dir": "",
		"degrees": 0
		},
		"avehumidity": 0,
		"maxhumidity": 0,
		"minhumidity": 0
		}
		,
		{"date":{
	"epoch":"1480870800",
	"pretty":"12:00 PM EST on December 04, 2016",
	"day":4,
	"month":12,
	"year":2016,
	"yday":338,
	"hour":12,
	"min":"00",
	"sec":0,
	"isdst":"0",
	"monthname":"December",
	"monthname_short":"Dec",
	"weekday_short":"Sun",
	"weekday":"Sunday",
	"ampm":"PM",
	"tz_short":"EST",
	"tz_long":"America/New_York"
},
		"period":3,
		"high": {
		"fahrenheit":"81",
		"celsius":"27"
		},
		"low": {
		"fahrenheit":"67",
		"celsius":"19"
		},
		"conditions":"Mostly Cloudy",
		"icon":"mostlycloudy",
		"icon_url":"http://icons.wxug.com/i/c/k/mostlycloudy.gif",
		"skyicon":"",
		"pop":2,
		"qpf_allday": {
		"in": null,
		"mm": null
		},
		"qpf_day": {
		"in": null,
		"mm": null
		},
		"qpf_night": {
		"in": null,
		"mm": null
		},
		"snow_allday": {
		"in": null,
		"cm": null
		},
		"snow_day": {
		"in": null,
		"cm": null
		},
		"snow_night": {
		"in": null,
		"cm": null
		},
		"maxwind": {
		"mph": 0,
		"kph": 0,
		"dir": "",
		"degrees": 0
		},
		"avewind": {
		"mph": 0,
		"kph": 0,
		"dir": "",
		"degrees": 0
		},
		"avehumidity": 0,
		"maxhumidity": 0,
		"minhumidity": 0
		}
		,
		{"date":{
	"epoch":"1480957200",
	"pretty":"12:00 PM EST on December 05, 2016",
	"day":5,
	"month":12,
	"year":2016,
	"yday":339,
	"hour":12,
	"min":"00",
	"sec":0,
	"isdst":"0",
	"monthname":"December",
	"monthname_short":"Dec",
	"weekday_short":"Mon",
	"weekday":"Monday",
	"ampm":"PM",
	"tz_short":"EST",
	"tz_long":"America/New_York"
},
		"period":4,
		"high": {
		"fahrenheit":"81",
		"celsius":"27"
		},
		"low": {
		"fahrenheit":"70",
		"celsius":"21"
		},
		"conditions":"Chance of Rain",
		"icon":"chancerain",
		"icon_url":"http://icons.wxug.com/i/c/k/chancerain.gif",
		"skyicon":"",
		"pop":24,
		"qpf_allday": {
		"in": null,
		"mm": null
		},
		"qpf_day": {
		"in": null,
		"mm": null
		},
		"qpf_night": {
		"in": null,
		"mm": null
		},
		"snow_allday": {
		"in": null,
		"cm": null
		},
		"snow_day": {
		"in": null,
		"cm": null
		},
		"snow_night": {
		"in": null,
		"cm": null
		},
		"maxwind": {
		"mph": 0,
		"kph": 0,
		"dir": "",
		"degrees": 0
		},
		"avewind": {
		"mph": 0,
		"kph": 0,
		"dir": "",
		"degrees": 0
		},
		"avehumidity": 0,
		"maxhumidity": 0,
		"minhumidity": 0
		}
		]
		}
	}
}