09-18-2017 06:47 PM
I am getting 503 status code with my API calls on our Cisco Prime 3.0. The documentation says that there will be text in the response providing info regarding the cause:
In our Java client I am calling the HttpMethod.getResponseBodyAsString()) to pull the text message. The response message is a html page returned only containing the status code error 503 but does not contain the response text above. Below is a part of the data in the response.
<h1 class="pageTitle">Page Error: 503</h1>
<p>
There is a problem with the page you are looking for. Verify the URL you entered, or the link from the referring page.
</p>
<table>
<tr>
<td><b>Status code:</b></td>
<td>503</td>
</tr>
Is there another method to call to retrieve the response text explaining the 503 error code?
Thanks,
Eddy
09-19-2017 09:27 AM
Unfortunately, in 3.0 and 3.1, changes to our UI impacted error handling throughout the system. We addressed and fixed this problem in 3.2 (CSCva10992).
503 errors, in most cases, are because too many requests come through in a given window of time or because too many requests are being processed concurrently. 503 errors should not be sticky (that is, they shouldn't persist forever). If you hit a scenario where 100% of responses are 503s, often times it is because the system clock has been rolled back, which messes with our accounting of requests.
To answer your question, on 3.0 and 3.1 we do still capture the exact cause of the 503 response in the xmpNbiFw.log file in the PI log folder (/opt/CSCOlumos/logs).
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