Skip to content

Instantly share code, notes, and snippets.

@ubourdon
Created July 9, 2014 14:24
Show Gist options
  • Select an option

  • Save ubourdon/72466e2d27082c3d479c to your computer and use it in GitHub Desktop.

Select an option

Save ubourdon/72466e2d27082c3d479c to your computer and use it in GitHub Desktop.
playframework bug when process GET http request wth json body
// route : GET /api/myRessource controllers.App.prepare
object App extends Controller {
def prepare = Action(parse.json) { request =>
Ok("test")
}
}
/** L'erreur
*
* <h1>Bad request</h1>
* <p id="detail">
* For request 'GET /api/mandateToSign' [Invalid Json]
* </p>
* /
@gbougeard
Copy link
Copy Markdown

reproduit chez moi en 2.3.1. Et bien faut faire du POST! ou des Query Binder!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment