Batch task creation method fails with "Unexpected end of string" error
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
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.
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?)
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).
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 do you know if this got resolved?