Skip to main content
NetApp Knowledge Base

Error- "The requested URL  was not found on this server" while trying to make API calls

Views:
212
Visibility:
Public
Votes:
0
Category:
fabric-interconnect-and-management-switches
Specialty:
brocade
Last Updated:
5/13/2024, 12:06:11 PM

Applies to

  • Brocade 
  • SANnav

Issue

  • While trying to fetch data using API calls from SANNAV through read only user, it is getting failed with error- "The requested URL  was not found on this server" and not getting the correct sessionId response.

curl -vvv -k -H "username: " -H "password: " -H "Accept:application/json" -X POST https://10.226.xx.xx/external-api/v1/login

/v1/login

*   Trying 10.226.xx.xx...
* TCP_NODELAY set
* Connected to 10.226.xx.xx (10.226.xx.xx) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS alert, handshake failure (552):
* error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
* Closing connection 0
curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

curl -k -H "username" -H "password" -H "Accept:application/json" -X POST https://10.229.xx.xx/external-api/v1/login
The requested URL  was not found on this server

 


curl -k -u "" -H "Accept:application/json" -X POST https://10.225.xx.xx/#/external-api/v1/login
Enter host password for user 'user':
{
    "code": "4XX",
    "error": "Proxy Service - Client error response",
    "error_description": "Proxy Service - Check your input parameters and HTTP body"
  }

 

 

  • Trying the exact same URL returnd error HTTP/1.1 404 Not Found. Below is the verbose output attached-

    > POST /external-api/v1/login/ HTTP/1.1
    > Host: 10.229.xx.xx
    > User-Agent: curl/7.61.1
    > Accept: */*
    > Content-Type:application/json

    * TLSv1.3 (IN), TLS handshake, [no content] (0):
    * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    * TLSv1.3 (IN), TLS handshake, [no content] (0):
    * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    * TLSv1.3 (IN), TLS app data, [no content] (0):
    < HTTP/1.1 404 Not Found
    < Date: Thu, 28 Mar 2024 13:26:47 GMT
    < Server: Apache
    < Strict-Transport-Security: max-age=31536000; includeSubDomains

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.