同樣的服務(wù)代碼,同樣的post請求代碼表谊,在新的容器中運(yùn)行flask服務(wù)時(shí)請求失敗爆办,parser.parse_args()報(bào)400錯誤
400 Bad Request: The browser (or proxy) sent a request that this server could not understand
在請求代碼中使用json解析又可以訪問:
requests.post(url, json=json)
經(jīng)過排查押逼,發(fā)現(xiàn)兩個容器中Werkzeug
的版本不一致:2.0.1vs2.1.0挑格,安裝指定版本后正常