Uncaught exception - Maximum size reached

75 views
Skip to first unread message

Henrique Oliveira

unread,
Nov 22, 2016, 8:28:28 PM11/22/16
to Haxe
Hello
Ah a few posts ago I mentioned how cool it is to work with neko as a server side language.
And that I was working on an application that acts as a web app.
Well,
In a nutshell, this application is a question editor for databases on LMSs (see BlackBoard, Moodle, etc.) that exports to compatible formats between LMSs (do it once, export to many).
One of the features is that we create all the questions and export them all at once.
So that's why I retrieve multiple input fields.
But when sending to the server, through XMLHTTPRequest, with POST method I get the following return message:
'' Uncaught exception - Maximum size reached ''
In my tests, I can send up to 99.9kb of information via POST. More than this value, the return is this message above.
I looked on the internet how to increase this size but I did not find anything about it (that was related to Neko)
And I come through this to ask for help from the community.

Thank you

Constantine

unread,
Nov 23, 2016, 4:58:54 AM11/23/16
to Haxe
Hi!

Check your call of neko.Web.getMultipart() function there should be maxSize parameter

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Henrique Oliveira

unread,
Nov 23, 2016, 10:25:06 AM11/23/16
to Haxe
Hello Constantine.
Look, I may be putting the wrong value inside the function, but what unit of data do I consider (in the documentation does not speak):
Byte.
Kilobyte.
(I doubt it's that) Megabyte
?

Constantine

unread,
Nov 23, 2016, 11:16:30 AM11/23/16
to Haxe
it should be Byte

Henrique Oliveira

unread,
Nov 24, 2016, 5:28:52 AM11/24/16
to Haxe
Hello constantine,
Thank you for your help.
I found this post, https://groups.google.com/d/msg/haxelang/9wScOrP-3RY/hjLZ1u6CYf0J
Nicolas gives you the option of increasing the size of the data sent via POST request.
I also searched the official website of neko and did not find (the option that Nicolas gave in the post).
But here it worked, after I set up Apache and restart it.
Thanks!

Constantine

unread,
Nov 24, 2016, 5:48:17 AM11/24/16
to Haxe
Hi!

Right! almost forget about mod_neko options. Here you can find other options:

Henrique Oliveira

unread,
Nov 24, 2016, 9:21:45 AM11/24/16
to Haxe
Cool!

Thank you for your help.
Reply all
Reply to author
Forward
0 new messages