postman 請求接口返回 Bad Request This combination of host and port requires TLS.
接手一個新項目,下載下來之后,啟動一切正常但是訪問一直報錯,于是在網(wǎng)上查找解決方案,開始說是http改為https
結(jié)果postman直接報錯了(下圖),提示:SSL錯誤:主機名/IP與證書的別名不匹配
當時沒有注意,其實只要點擊一下這個紅字就自動把ssl證書驗證關(guān)了。
后來又百度說找到設置里關(guān)了ssl驗證才解決。
一、問題復現(xiàn)
請求接口
http://127.0.0.1:8080/wys/user/username
調(diào)用接口返回
Bad Request
This combination of host and port requires TLS.
或者項目中出現(xiàn)
ERROR RUNNING SOCKET PROCESSOR
需要檢查兩個地方:
二、接口請求http改為https
https://127.0.0.1:8080/wys/user/username
三、postman修改設置
1.打開postman右上角找到settings
2.setting里左上角General里,找到關(guān)閉ssl證書驗證。
文章來源:http://www.zghlxwxcb.cn/news/detail-512971.html
OK文章來源地址http://www.zghlxwxcb.cn/news/detail-512971.html
到了這里,關(guān)于postman 請求接口返回 Bad Request This combination of host and port requires TLS.的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!