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>
* /
@athieriot
Copy link

On peux voir la tête du json?

@gbougeard
Copy link

et quelle version de Play?

@athieriot
Copy link

Il me semble qu'Ugo viens de passer à Play 2.3

@gbougeard
Copy link

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