question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Play 2.1.1 HTTP 413 trigger

See original GitHub issue

Hello.

I noticed that if you cross the 100kb default by a few bytes you’ll get a “HTTP/1.1 413 Request Entity Too Large” however, when i cross it with 105947(maybe this value is just for me) bytes i get a “HTTP/1.1 200 OK” again - which is bad since then all my validation returns false(because body is null).

I am assuming this is a bug?

Reproduce code:

    public static Result test() {
      Form form = Form.form.bindFromRequest();
      ObjectNode result = Json.newObject();

      // Return w/e the user sent as json
      return ok(Json.toJson(form.get()));
    }

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
patrik7commented, Mar 3, 2017

Maybe a clarification is in order. I don’t need a method to find out that body is too big. I want to be able to submit a form that has large body and process it on the server side - ideally without getting 413 screen of death.

0reactions
patrik7commented, Sep 24, 2018

There’s a config setting you can use:

# Netty maximum upload file size (in bytes)
play.module.netty.maxContentLength=8388608
Read more comments on GitHub >

github_iconTop Results From Across the Web

Play Framework 2.1.1 HTTP 413 trigger - Stack Overflow
I am having problems with Play! Framework 2.1.1. When sending a large(100kb+) request to my application (Play! 2.1.1) i get a "413 Request ......
Read more >
Java Guide1 - 2.1.1 - Play Framework
In this tutorial you will learn the Play 2 Framework by coding a real web ... You can see the new application by...
Read more >
Developing Web Services Applications Red Hat JBoss ...
Application and providing a custom implementation. 2.1.1. Simple Subclassing javax.ws.rs.core.Application. You can use ...
Read more >
413 REDD PROJECT (413 PROJECT)
2.1.1 Summary Description of the Project (G1.2) . ... 5.5.2 Trigger Species Population Trends (GL3.2, GL3.3).
Read more >
nginx-modules-reference-r20.pdf
2.7 Module ngx http auth request module . ... log level will cause all messages of the specified and more severe log ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found