THIS IS A STATIC MIRROR OF USERSCRIPTS.ORG - LOGINS DO NOT WORK

413 Request Entity Too Large

in Userscripts.org discussion
Subscribe to 413 Request Entity Too Large 25 posts, 4 voices



Barbarossa69 Scriptwright
FirefoxWindows

What does this mean when I try to upload?

Never had a problem before... :(

 
Watilin Scriptwright
FirefoxWindows

I guess it means that the file you’re trying to upload is too largeā€¦ Didn’t the site specify a maximum file size?

 
Barbarossa69 Scriptwright
Safari

It's this site, and it's a script I've uploaded many times before :(

 
Calcium Scriptwright
ChromeWindows

yes same problem here...

 
Watilin Scriptwright
FirefoxWindows

It seems that some improvements are being made on this site.
Some errors are popping — we’re currently experiencing 413, 503 and maybe others, I can’t tell.

Better be patient :)

 
Calcium Scriptwright
ChromeWindows

better be patient ok, but how many days or week ? ...

 
Barbarossa69 Scriptwright
Safari

Fingers crossed it gets sorted soon, though if I had to make a choice I'd prefer they sorted the spam out first...:(

 
Calcium Scriptwright
ChromeWindows

yes of course, i'm agree with you !

 
Barbarossa69 Scriptwright
FirefoxWindows

*BUMP*
Any progress on this that anyone knows?

 
Marti Scriptwright
FirefoxX11

Barbarossa69 wrote:
What does this mean when I try to upload?
Never had a problem before... :(
Just uploaded a copy of your script with a bunch of comments tacked onto it to make it bigger as a test and it works for me... deleted now since it's obviously not my script. :)

Have you tried pasting the source instead of file uploading?

 
Barbarossa69 Scriptwright
Safari

I have 6 scripts, it's the larger 2 that cause the problems - that one is ok!!

Edit: and yeah I did try pasting the source, and got the same error when saving.

 
Marti Scriptwright
FirefoxX11

Barbarossa69 wrote:
it's the larger 2 that cause the problems
Got some confirmation on your largest one... sent a diagnostic report to support and we'll see what happens. Happens in clean profile and well used too... so doesn't appear to be an add-on issue. Not sure what the max size is but your script is one of the biggest ones I've seen to date tipping out at ~1.2MiB (~1,239KiB test adjusted to ~1,254KiB). EDIT: calciums biggest script is bigger at ~1.47MiB... and Mary Matson has a script at ~1.5MiB.

Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
GM 1.15 and latest GM HEAD

You all might need to start making use of @resource / @require if supported (NinjaKit for Safari is getting a little bit-rotted) and host those embedded images and CSS somewhere if there is a newer maximum size for USO that has been reached... if not try an image optimizer before base64 encoding, cut down on white space, minimize translation comments, and remove dead code. e.g. minify as much as possible.

 
Calcium Scriptwright
ChromeWindows

have you some doc for the "require" item ?

 
Marti Scriptwright
FirefoxX11

Calcium wrote:
have you some doc for the "require" item ?
@require for it on my GM cross stream. TamperMonkey (TM) does support it but it will only be cached for about 30 minutes and then redownloaded again... so pick a server that can handle that sort of abuse.

 
Calcium Scriptwright
ChromeWindows

thanks for the quick reply ! ;) i have my server, so i can do it ^^

 
Marti Scriptwright
FirefoxX11

Calcium wrote:
i have my server,
Good news. You should be able to modify the caching time of the file hosted to affect TM. I've only found a maximum of ~8 hours to work effectively in Chrome/Chromium though last I checked... e.g. those browsers don't fully listen to my setting it further out.

Calcium wrote:
thanks for the quick reply
Welcome. :)

 
Calcium Scriptwright
ChromeWindows

i have never use require, because i use the same script for userscript and Chrome Extension. Chrome Extension don't read the @require attribut, so there will be 2 script to manage now

 
Marti Scriptwright
FirefoxX11

Calcium wrote:
Chrome Extension don't read the @require attribut
See Web Accessible Resources for your manifest although TM will probably intercept everything with a user.js file extension for the top level script hosted here. I think native user.js support in Chrome/Chromium doesn't support @require if I recall.

 
Calcium Scriptwright
ChromeWindows

ouch.. thanks a lot for all of that !

 
Calcium Scriptwright
ChromeWindows

I reduced 300ko the file size just with

// @require https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js
// @require https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js
// @require https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/effects.js
// @require https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/dragdrop.js
// @require https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/builder.js
// @require https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/controls.js
// @require https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/slider.js
// @require https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js

but always the same problem. now i must minified some part of my code to reduce more...

 
Barbarossa69 Scriptwright
FirefoxWindows

(Bump) Does anyone know the reason why the upload limit of 1MB has been introduced recently, and whether it can be raised to 2MB to match Greasyfork?

 
Marti Scriptwright
FirefoxX11

Barbarossa69 wrote:
upload limit of 1MB
Have you actually tested to see if this is the real limit?

Barbarossa69 wrote:
Does anyone know the reason why the upload limit
With an educated guess probably to limit spam scripts and also encourage usage of @require and @resource is a thought or two.

Barbarossa69 wrote:
whether it can be raised to 2MB
I haven't heard anything back from the specific inquiry mentioned here but whatever the exact size is it is probably going to stick since it has been a while. Still best to reduce your code if possible.

Barbarossa69 wrote:
(Bump)
If I do hear/read something further I'll be sure to post it. :)

 
Barbarossa69 Scriptwright
FirefoxWindows

I assume the limit is 1MB because according to the greasyfork admin that is the default limit on nginx.

 
Marti Scriptwright
FirefoxX11

Barbarossa69 wrote:
according to the greasyfork admin that is the default limit on nginx.
I am not entirely sure of his accuracy. Last I read it was 2MiB for nginx and PHP is 2MiB u/l with 3MiB post size. More factors come into effect with migration, including platforms across the networked machines, distro, version, etc. as well. It could have been changed to a different number, then modified more than once. Try uploading a 1MiB exactly file temporarily to test to see if some of these numbers correspond. So there basically isn't any real way to know until you try. If this were one of goo's sites they'd have specific regions and specific profiles set to limits on an individual needs... which can be severely abused... but that's another long story. So depending on the servers available each may have different limitations. A lot is done in the backend and piped/bridged out... hence why there are sometimes 502's. :)

 
Barbarossa69 Scriptwright
FirefoxWindows

OK I just tried it.. I can upload a script of 0.99MB but not one of 1.00MB.

http://userscripts-mirror.org/scripts/show/487076