HTML Tag inside the JSON response

  • 8
  • Problem
  • Updated 3 years 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: Resonse Body: { "response": { "version":"0.1", "termsofService":"", "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 3 years ago

  • 8
Photo of Norbert Barbír

Norbert Barbír

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