Last 12 weeks · 0 commits
2 of 6 standards met
I've been happily using pastebinit for months, and suddenly this morning I got an error I hadn't seen before: parsing body as json failed: invalid character ' this-file-worksbase64 /dev/urandom | head -c 1048577 > this-file-failsclient_max_body_size 0;`, which disables the check (a bigger number is a better solution -- I'm just still figuring out what that number should be in my setup). I figured it'd be helpful, should someone else run into this, to provide an error message that points a bit more directly at the problem. With this PR, pastebinit now returns the following error when receiving a 413 response code: 413: Payload Too Large. Make sure your proxy or load balancer allows request bodies as large as any file you wish to accept. P.S. Thank you for building this nifty tool!
Repository: jessfraz/pastebinit. Description: Go implementation of pastebinit. Stars: 73, Forks: 12. Primary language: Go. Languages: Go (45.4%), CSS (29.4%), Makefile (23%), Dockerfile (2.3%). License: MIT. Homepage: https://paste.j3ss.co/aXz2PZev Latest release: v0.2.4 (7y ago). Open PRs: 1, open issues: 0. Last activity: 3y ago. Community health: 42%. Top contributors: jessfraz, github-actions[bot], toc-me[bot], bjoern-r, ilyaglow, freerobby, sysradium.