Page 1 of 1

Invalid content length on app package

Posted: September 12th, 2022, 5:28 pm
by wesnich
We've installed CSWeb 7.7.0 on a new server. Testing it out by uploading applications and we are receiving 403 errors with the message "Invalid content length on app package". Seeing the same thing in the api logs.

[2022-09-12 22:40:05] app.ERROR: Invalid content length on app packageTHIS 2022-2023 Survey Form - v.117 [] []
[2022-09-12 22:57:13] app.ERROR: Invalid content length on app packageTHIS 2022-2023 Listing Form - v205 [] []

Any idea what might be causing this?

It seems the action eventually completes though slowly. Are there any recommendations for memory and cpu for CSWeb?

Re: Invalid content length on app package

Posted: September 19th, 2022, 12:05 pm
by savy
This error can occur when the server does not recieve all the bytes that it is supposed to get from the client. It appears that this is more of an issue of the client having slow internet speeds. This issue does not seem to be related to your server performance. Unless you are running CSWeb for a Census or a very large survey, any server that can run a Linux/Windows with PHP and MySQL should be able to perform fine.