We're updating the issue view to help you get more done. 

Rise exception when service response is not valid

Description

E.g. ServiceNow returns something like the following:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 <!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

Status

Assignee

Matteo

Reporter

Matteo

Labels

None

Fix versions

Priority

Major