Handling - "NetworkError: 413 Request entity too large

997 views
Skip to first unread message

Blaine Garrett

unread,
Jan 23, 2013, 2:03:09 PM1/23/13
to google-a...@googlegroups.com
Hi,

While doing some research into a bug involving customers pasting large amounts of data into forms,  today on the SDK, I hit this in my "NetworkError: 413 Request entity too large".

The only thing in the console was:
ERROR    2013-01-23 18:26:23,079 dev_appserver.py:1273] HTTP request was too large: 35959825.  The limit is: 33554432

A couple questions:
a) Is there a constant that defines this limit such that we might be able to prevent the request in the first place?
b) Is there an exception we can handle to provide better feedback to our users

Takashi Matsuo

unread,
Jan 24, 2013, 3:54:50 PM1/24/13
to google-a...@googlegroups.com

Hi Blaine,

On Wed, Jan 23, 2013 at 11:03 AM, Blaine Garrett <bla...@blainegarrett.com> wrote:
Hi,

While doing some research into a bug involving customers pasting large amounts of data into forms,  today on the SDK, I hit this in my "NetworkError: 413 Request entity too large".

The only thing in the console was:
ERROR    2013-01-23 18:26:23,079 dev_appserver.py:1273] HTTP request was too large: 35959825.  The limit is: 33554432

A couple questions:
a) Is there a constant that defines this limit such that we might be able to prevent the request in the first place?

 
b) Is there an exception we can handle to provide better feedback to our users

Unfortunately no at this point. However, I think '413 Request entity too large' is self-explanatory enough.  
The request size is limited even on the production App Engine environment, so If the client may upload large files, please consider using blobstore API:
(Please see create_upload_url function)

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/X3d9jKp7qbcJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Takashi Matsuo | Developers Advocate | tma...@google.com
Reply all
Reply to author
Forward
0 new messages