![](/img/trans.png)
[英]AWS API Gateway with Lambda HTTP GET Request (Node.js) 502 Bad Gateway
[英]Node.js/Express.js/consign(): default request works ("/") but ("/tasks") returns a 502:Bad Gateway
雖然代碼能夠成功請求 app.get ("/") 但是,當我嘗試請求 app.get("/tasks") 時,它失敗並返回 502:Bad Gateway。 我檢查了紗線日志,沒有顯示錯誤。 下面是我的代碼工件和實時代碼。 實時代碼:沙盒
它返回 502: Bad Gateway
嘗試這個:
consign({ cwd: "src" })
.include("./models")
.then("./libs")
.then("./routes")
.into(app);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.