Skip to content

File size too large error #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
candork opened this issue May 3, 2016 · 2 comments
Closed

File size too large error #180

candork opened this issue May 3, 2016 · 2 comments

Comments

@candork
Copy link

candork commented May 3, 2016

I have installed this project on AWS Elastic beanstalk. Have added s3 adapter in parse server and configured everything. The app is able to uploaded images into the bucket and I have confirmed it.

Our app lets users record video and upload it to backend - with parse server this is failing. The video file size is around 1-5MB, I see this error in the server logs

2016/05/03 01:47:56 [error] 3301#0: *189 client intended to send too large body: 1097919 bytes, client: 10.186.165.111, server: , request: "POST /parse/files/ADAF1714-9C6E-4EEC-BCDE-0405F2EBB50E.mp4 HTTP/1.1", host: "api.snapchat.com"
2016/05/03 01:48:57 [error] 3301#0: *255 client intended to send too large body: 1097919 bytes, client: 10.186.165.111, server: , request: "POST /parse/files/ADAF1714-9C6E-4EEC-BCDE-0405F2EBB50E.mp4 HTTP/1.1", host: "api.snapchat.com"

Any idea how to increase file size limit? Or am i doing something wrong?

@iamvajid
Copy link

iamvajid commented Oct 1, 2016

Body Parser is rejecting the request because its too large. By default, an express app will have a request body limit of 100 KB. You can increase this limit yourself.

var bodyParser = require('body-parser'); app.use(bodyParser.json({limit: '50mb'})); app.use(bodyParser.urlencoded({limit: '50mb', extended: true}));

I think this issue is fixed in parse latest version, not sure though.
parse-community/parse-server#536

@iamvajid
Copy link

iamvajid commented Oct 1, 2016

Using an update parse server version would also work. Version 2.2.22 while writing this.

jeskandarian pushed a commit to jeskandarian/parse-server-example that referenced this issue Jan 1, 2017
…inked-jasmine-binary-instead-of-global

Updated package.json to use the symlinked jasmine binary
@TomWFox TomWFox closed this as completed Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants