Invalid Json: No content to map due to end-of-input when using play body parser

后端 未结 2 1712
孤城傲影
孤城傲影 2021-01-02 09:24

I\'m trying to test a controller method that attempts to parse JSON sent in the request:

  def addRoomToProfileForTime = Action.async(parse.json[AddRoomToPro         


        
2条回答
  •  离开以前
    2021-01-02 09:53

    Another reason can be not setting Content-Length in Postman application. By mistake I had disabled it, and forgot to enable it. .

提交回复
热议问题