Jean
Jean

Reputation: 5411

nodejs app engine app error 413 Request Entity Too Large when upload a file

I have a nodejs api and one of my endpoints allow the user to upload files (images and pdf), but sometimes pdf are to big (50MB - 100MB) and I get 413 Request Entity Too Large when upload file. I trying to find an configuration to increase the size of the files on my app engine, but can find anythig. Any suggestion of how to solve this error.

Upvotes: 0

Views: 2574

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317758

On Google App Engine, the incoming payload can only be 32 MB max. It is not configurable.

Incoming bandwidth

The amount of data received by the application from requests. Each incoming HTTP request can be no larger than 32MB.

This includes:

  • data received by the application in secure requests and non-secure requests
  • uploads to the Blobstore
  • data received in response to HTTP requests by the URL fetch service

Consider allowing your clients to upload directly to Cloud Storage instead.

Upvotes: 3

Related Questions