HTML Tag inside the JSON response

  • 8
  • Problem
  • Updated 11 months ago
  • (Edited)
I requested weather history for a station through API.
Sometimes I receive response with HTTP with Status Code 200 but there is some HTML tag in response body.
Requested URL: http://api.wunderground.com/api/key/history_20160805/q/KDAL.json Resonse Body: { "response": { "version":"0.1", "termsofService":"http://www.wunderground.com/weather/api/d/terms.html", "features": { "history": 1 } } ,<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>400 Bad Request</title> </head><body> <h1>Bad Request</h1> <p>Your browser sent a request that this server could not understand.<br /> </p> <p>Additionally, a 400 Bad Request error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html> }
Photo of Chanh Ha

Chanh Ha

  • 2 Posts
  • 0 Reply Likes

Posted 11 months ago

  • 8
Photo of michielbon

michielbon

  • 2 Posts
  • 1 Reply Like
Sometimes it works sometimes not.
Photo of manhar

manhar

  • 1 Post
  • 0 Reply Likes
Is this issue resolved?We still see api calls returning bad requests response.
Photo of Norbert Barbír

Norbert Barbír

  • 3 Posts
  • 1 Reply Like
It is working again, thanks for the support!