cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1922
Views
0
Helpful
4
Replies

Cisco asa rest api 500 Internal Server Error

Hello guys,

 

I am configuring the Cisco ASA 5585x rest api. 

 

During config time successful below commands.

A/ASA-Cluster# show running-config | include rest-api
rest-api image disk0:/asa-restapi-7141-lfbff-k8.SPA

rest-api agent

 

But, I am running to 500 errors when running the following url "https://10.133.3.5/doc". 

500 Internal Server Error

 

What is the problem??

 

Thanks

 

 

4 Replies 4

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

The REST-API agent URL root is:

https://<server-ip>/api/

 

So you need to try:

https://10.133.3.5/api/doc/

 

cheers,

Seb.

it have same result

Hi there,

Try enabling HTTP debugging on the ASA:

 

debug http

 

...then restart the agent:

!
no rest-api agent
rest-api agent
!

...now try accessing the URL. Now check the logging buffer for any info:

 

sh log | inc REST

 

cheers,

Seb.

I'm try connect rest-api. According to the following instructions give below error:

 

TTP: user already authenticated, bypass authentication
HTTP: processing handoff to legacy admin server [/doc]
HTTP: admin session verified = [0]
HTTP: REST-API - This is a DOC request.
HTTP: REST-API - processing URL '/doc' of REST api request from host 10.22.2.47
HTTP: REST-API - forwarding REST API request to REST Agent
HTTP: REST-API - content-length: -1
HTTP: REST-API - Bytes to be read (HTTP request method):3
HTTP: REST-API - Bytes to be read (URI until CRLF line)): 574
HTTP: REST-API - Length of the entire message-body: 0; content-length: -1
HTTP: REST-API - Length of the entire request: 577
HTTP: REST-API - sending rest request to REST API Agent

 

 

 

Review Cisco Networking products for a $25 gift card