跳转到主内容

尝试调用API时出现错误-"此服务器上未找到请求的URL "

Views:
5
Visibility:
Public
Votes:
0
Category:
fabric-interconnect-and-management-switches
Specialty:
brocade<a>2009962823.</a>
Last Updated:

适用场景

  • Brocade
  • SANNAV

问题描述

  • 在尝试通过只读用户从SANNAV调用API来提取数据时、此操作 失败、并显示错误""The requested URL  was not found on this server、并且未 获得正确的会话ID响应。

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"
  }

 

 

  • 正在尝试完全相同的URL返回 错误 HTTP/1.1 404 Not Found。以下 是 附加的详细输出-

    > 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.