Skip to content

Allow for bigger atoms to be saved #272

Merged
ajwl merged 1 commit intomasterfrom
increase-post-body-size
Apr 21, 2020
Merged

Allow for bigger atoms to be saved #272
ajwl merged 1 commit intomasterfrom
increase-post-body-size

Conversation

@ajwl
Copy link
Contributor

@ajwl ajwl commented Apr 20, 2020

Some chart atoms were failing to save because the amount of data used in them (eg datasets of 1000+ lines) was too big. PUT requests to save the atom were failing with a 413 Error: Request Entity Too Large.

What has changed

This PR increases the size of requests accepted by the Play app - up from the default 100kB to 200kB.

The test dataset that was failing - the discrete line in this spreadsheet, had a body size that was 104kB large.

See documentation for this property here: https://www.playframework.com/documentation/2.0.x/ScalaBodyParsers#Max-content-length

To Test

Try making a discrete line chart using the data the discrete line in this spreadsheet

@ajwl ajwl requested a review from a team April 20, 2020 17:04
Copy link
Contributor

@jonathonherbert jonathonherbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 hopefully a small one, after all!

@ajwl
Copy link
Contributor Author

ajwl commented Apr 21, 2020

thanks @jonathonherbert

@ajwl ajwl merged commit 9ebdf34 into master Apr 21, 2020
rtyley added a commit that referenced this pull request Jan 26, 2024
Prompted by this error message in the logs:

application.conf @ file:/usr/share/atom-workshop/conf/application.conf: 9: parsers.text.maxLength is deprecated, use play.http.parser.maxMemoryBuffer instead

Apparently the parsers.text.maxLength property has been deprecated since
Play 2.4 and playframework/playframework#4093

https://www.playframework.com/documentation/2.9.x/ScalaBodyParsers#Max-content-length

In atom-workshop, the increased size was set to allow bigger chart atoms:

#272
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

Successfully merging this pull request may close these issues.

2 participants