04-15-2014 06:27 AM
Hi All,
I was wondering, if i send a wrong request to CUCM AXL, for example a 10.0 version request to CUCM 9.0... the response is:
httpStatus code 599 which is fine.
And the error content (basically the error stream) is a "nice" error message in HTML format.
The error is clear and nice to read in browser:
<html> <head> <title> Cisco System - Error report </title> <style type="text/css"> a { color: #316984; text-decoration: none; } a:hover { color: #316984; text-decoration: underline; } a:visted { color: #316984; text-decoration: none; } body { background-attachment: fixed; background-color: #ffffff; background-repeat: no-repeat; color: #316984; font-family: arial,helvetica,sans-serif; } #content { border: 1px solid #d6d7d6; font-size: 93.5%; margin: 0px 10% 30px 10%; } #content-header { background-color: #eeeeee; border-bottom: 1px solid #666666; color: #666666; font-size: 124.5%; padding: 5px 15px 5px 15px; } #copyright { font-size: 75%; margin: 0px 10% 0px 10%; padding: 3px 0px 0px 0px; text-align: right; } img { display: block; margin: 0px 0px 20px 0px; } #logo { margin: 30px 10% 0px 10%; } p { padding: 5px 15px 5px 15px; } pre { padding: 5px 15px 5px 30px; } </style> </head> <body> <div id="logo"> <img alt="Cisco Systems, Inc." src="/ciscologo.gif"/> </div> <div id="content"> <div id="content-header">HTTP Status 599 - The specified version is not available. Available versions are 7.1, 8.0, 8.5, 9.0 and 9.1 </div> <p> <b> type: </b> Status report </p> <p> <b>message: </b> The specified version is not available. Available versions are 7.1, 8.0, 8.5, 9.0 and 9.1 </p> <p> <b>description: </b> http.599 </p> </div> </body> </html>
But how i can get only the descriptive error message somehow? I mean only the content of the header div:
HTTP Status 599 - The specified version is not available. Available versions are 7.1, 8.0, 8.5, 9.0 and 9.1
04-18-2014 11:20 AM
What programming language are you using? Or, just are you just simply trying to get it from the raw data?
Some programming language might have already parse out for you. Or, you can apply the xml/data as return to try to parse the error description only.
Regards,
Howard
04-22-2014 12:29 AM
Hi,
I'm using Java: java.net.HttpURLConnection in and output stream.
Basically my problem is: there are 2 different kind of error.
In most of the cases, there are a <faultcode> and/or <faultstring> within the response XML document.
Example: I'm sending an invalid request, the response is :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>Sender</faultcode>
<faultstring>SOAP Envelope can not have children other than SOAP Header and Body</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
This can be easily parsed, just finding the fault code and string tags.
But sometimes the response is in HTML format (see my first question).
Why is there such another error type? What is the differnece?
And how can i parse it? There is no faultcode or faoultstring.
Parsing the HTML raw data directly, seem an "ugly" solution for me in this case.
06-10-2014 05:29 AM
Hi Istvan
Have you been able to solve this issue?
I am facing the same problem.
I get HTTP Status 599 - in the response.
There is no description.
Any pointers?
Many Thanks
Regards
Priyanka
06-11-2014 06:01 AM
Unfortunately no, I have no solution so far...
(I also don't know why my questions status: Assumed Answered)
06-11-2014 12:39 PM
There are two types of error code returned by AXL.
One is the AXL error code, this contains error code and description and can be catches via exception
Also, for Serviceability API there is SOAP Fault Error Codes with fault strings. This also can be catches via exception
However, for HTTP response code 599. Since it's a http level response meaning in general that network is timeout, I would suggest to add network connection layer of exception to capture that.
I checked the version 9.x and 10.x the returned also seem not consistent where the 9.1 returns a report type of result as below
type: Status report
message: The specified version is not available. Available versions are 7.1, 8.0, 8.5, 9.0 and 9.1
description: http.599
10.x returns without any details information
type: Status report
message:
description: http.599
Hope this help.
Regards,
Howard
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide