Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jules 273 posts 564 karma points
    19 days ago
    Jules
    0

    Request entity too large error

    Hi Kevin

    uSync Complete 8.11.4

    Uploading a usync package with media folder that contains several fairly large files (max 12mb each). Package size is about 70mb.

    Getting this error in the browser:

    enter image description here

    Any way around this?

    Regards

    Jules

  • Kevin Jump 2317 posts 14726 karma points MVP 7x c-trib
    19 days ago
    Kevin Jump
    1

    Hi,

    you can see if reducing the PageSize value in the uSync config will help (this will pack less items per request, so reduce the size.

    https://docs.jumoo.co.uk/usync/8.x/complete/publisher/config

    but you probably want to up the max upload size in the web config, to let the larger file uploads (just for uSync).

    https://docs.jumoo.co.uk/usync/8.x/complete/publisher/upload

  • Jules 273 posts 564 karma points
    1 week ago
    Jules
    0

    Hi Kevin

    We already have the max upload size set to 500mb in fact. The max size of each media item that we are uploading is under 20mb. The usync sync package doesn't exceed 70mb.

    I don't see the pagesize setting currently in our publisher.config. I assume it defaults to 50 as in the example on the linked page, is that right?

    Jules

  • Kevin Jump 2317 posts 14726 karma points MVP 7x c-trib
    1 week ago
    Kevin Jump
    2

    Hi,

    Yes in later versions the default is 50, you can push that right down if you want to test it.

    but i would check your upload size configs in the web.config/IIS just to make sure.

    a 413 error is returned by the webserver its not the uSync code doing that, and 413 is request to large so it does point to it being the server stopping it.

    but I could be a proxy or firewall or load balancer if you have one, as the requests might well be going through that. before hitting the server ?.

  • Jules 273 posts 564 karma points
    6 days ago
    Jules
    0

    Found it!

    Our general maxcontentlength maxrequestlength settings were in fact too low for the package size.

    There was a location element added in web.config for path umbraco/uSyncReceive

    However, the error we saw was on the path umbraco/backoffice/uSync/uSyncNuExporterApi/UploadFile

    Had to add another location element wth higher maxcontentlength maxrequestlength for path umbraco/backoffice/uSync/uSyncNuExporterApi/UploadFile

Please Sign in or register to post replies

Write your reply to:

Draft