anandthakker / anandthakker/doiuse.com

Huge pasted CSS breaks the app an second run

Offen
#35 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
32
Forks
4
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

If you paste a larger CSS file (around 1600 lines) into the input field, the first submit works as expected.
On second submit, this error is thrown:

> There was an error -- shocking, I know. If you've got a minute, please report it!
> Request Arguments
>
> {
> "url": "",
> "browsers": "",
> "css": "[huge pasted css ...]"
> }
>
> Error
>
> {}
>
> fetch/<@http://www.doiuse.com/bundle.js:3295:19
> once/<@http://www.doiuse.com/bundle.js:3169:12
> loadFunc@http://www.doiuse.com/bundle.js:3064:9
> readystatechange@http://www.doiuse.com/bundle.js:2994:13

If you try to report this error using the "report it!" link you get:
> 400 Bad Request
> Request Header Or Cookie Too Large

I think to fix this, the pasted CSS should not be submitted as GET parameter, but using POST.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.