-2
我使用joi和hapi與節點js一起工作,我使用post方法創建註冊。
錯誤:在Node js中有錯誤請求的statusCode 400
當我打電話給這個URL「http://localhost:9000/api/users」和參數標題內容Content-Type: application/x-www-form-urlencoded
。它顯示錯誤如:
{"statusCode":400,"error":"Bad Request","message":"name is required"}
請分享一些代碼。 –