Rise exception when service response is not valid

Description

E.g. ServiceNow returns something like the following:

<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head> <title> Hibernating Instance </title> <meta HTTP-EQUIV="refresh" content="3;https://developer.servicenow.com/app.do#!/instance?wu=true"> </head> <body> <div style="width:100%; height:55px;background:#333;"> <a href="https://developer.servicenow.com/app.do#!/home"> <img id="dev-logo" src="devportal-logo.png" style="width: 300px;padding: 10px;" alt="ServiceNow Developers"> </a> </div> <div style="text-align: center;padding: 30px 10px 10px; 10px;"> <p style="font-size:27px;line-height:38px;color:#333;">Sorry, I got bored and fell asleep. Sign in to the <a style="color:#428bca;text-decoration: none;" href="https://developer.servicenow.com/app.do#!/instance?wu=true">Developer Site</a> and I will be ready to report for duty! <br/>Examine the <a style="color:#428bca;text-decoration: none;" href="https://developers.servicenow.com/app.do#!/program/faq?q=sleepy_personal_peveloper_instances">FAQ</a> to learn more about sleepy instances.</p> </div> <div style="text-align: center;"> <img src="dev-power-off.png" width="160px" height="160px" /> </div> <div style="text-align: center;padding: 20px 10px;"> <p style="font-size:16px;color:#333;">You will be redirected momentarily to the <a style="color:#428bca;text-decoration: none;" href="https://developer.servicenow.com/app.do#!/instance?wu=true" >Developer Site</a>. </p> </div> </body> </html>

when target dev instance is "sleeping".

Environment

None

Activity

Show:

Francesco ChicchiriccòMay 2, 2022 at 11:51 AM

Bulk close for 1.0.1

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created May 30, 2018 at 10:04 AM
Updated May 2, 2022 at 11:51 AM
Resolved May 30, 2018 at 11:11 AM