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

EoX API always responds with 500 error

Forward
Level 1
Level 1

I am trying to use the EoX API.  It includes many sample requests.  However, each one I tried resulted in a 500 response.

To be more specific, I executed a command like this...

curl --user "MyUserName:MyPassword" "https://apix.cisco.com/supporttools/eox/rest/5/EOXByProductID/1/WIC-1T=?responseencoding=xml" -v

...and the response looks like this:

*   Trying 72.163.8.72:443...
* Connected to apix.cisco.com (72.163.8.72) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN: server accepted http/1.1
* Server certificate:
*  subject: C=US; ST=California; L=San Jose; O=Cisco Systems Inc.; CN=api.cisco.com
*  start date: Sep 21 06:22:07 2023 GMT
*  expire date: Sep 20 06:21:07 2024 GMT
*  subjectAltName: host "apix.cisco.com" matched cert's "apix.cisco.com"
*  issuer: C=US; O=IdenTrust; OU=HydrantID Trusted Certificate Service; CN=HydrantID Server CA O1
*  SSL certificate verify ok.
* using HTTP/1.1
* Server auth using Basic with user 'MyUserName'
> GET /supporttools/eox/rest/5/EOXByProductID/1/WIC-1T=?responseencoding=xml HTTP/1.1
> Host: apix.cisco.com
> Authorization: Basic SomeEncodedString
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 500 Server Error
< Content-Length: 0
<
* Connection #0 to host apix.cisco.com left intact

Is there something wrong with the server or is my call incorrect?

0 Replies 0