maproulette-backend icon indicating copy to clipboard operation
maproulette-backend copied to clipboard

Batch task creation method fails with "Unexpected end of string" error

Open tBeata-grab opened this issue 9 years ago • 5 comments

The batch task creation method fails from time to time with the following message: {"status":"KO","message":"ERROR: Unexpected end of string",responseCode:500}.

Test json file: example.txt

tBeata-grab avatar Jun 15 '16 09:06 tBeata-grab

This most likely is due to the post body length limit, so I am guessing that it just truncates the file after X number of bytes and then you will get the "Unexpected end of string". A workaround for now would be to just split the json file into multiple files and call the batch upload API multiple times.

mgcuthbert avatar Jun 15 '16 16:06 mgcuthbert

We can set the upload payload size limit to a higher value on production as far as I am concerned. Old MapRoulette used 10MB without issues. What would it take to do this? (Can we expose this value in the application configuration?)

mvexel avatar Jun 15 '16 16:06 mvexel

As a quick work around I will split more the GeoJSON files. I'm already splitting the original GeoJSON file into smaller files (the file contains around 500 tasks).

tBeata-grab avatar Jun 15 '16 17:06 tBeata-grab

We should be able to do this in the application.conf file for the Play configuration. Just need to find what value sets that correctly.

mgcuthbert avatar Jun 15 '16 23:06 mgcuthbert

@mgcuthbert do you know if this got resolved?

mvexel avatar Nov 08 '16 18:11 mvexel