postman报Could not get any response

    技术2022-07-11  82

    今天在进行接口测试时遇到以下报错,

    Could not get any response There was an error connecting to https://xxx.com/api/v1/virtualmachine/namespaces Why this might have happened: The server couldn't send a response: Ensure that the backend is working properly Self-signed SSL certificates are being blocked: Fix this by turning off 'SSL certificate verification' in Settings > General Proxy configured incorrectly Ensure that proxy is configured correctly in Settings > Proxy Request timeout: Change request timeout in Settings > General

    检查所有参数都是正确的,打开postman console查看报错为Error: getaddrinfo ENOTFOUND xxx.com xxx.com:443 ,因为用的是HTTPS,可能是证书问题,检查Settings-General-SSL certificate verification ,默认是开启状态,关闭证书认证再测试就OK了。

     

    Processed: 0.013, SQL: 9