toptal / haste-server

open source pastebin written in node.js
https://www.toptal.com/developers/hastebin/about
2.92k stars 796 forks source link

zipped files too large failing to be retrieved with raw #449

Closed AaronNGray closed 3 months ago

AaronNGray commented 6 months ago

Following https://www.toptal.com/developers/hastebin/documentation but using --data-binary

curl --request POST --url https://hastebin.com/documents --header "Authorization: Bearer TOKEN" --data-binary "@schema.zip"
{"key":"ilozemivib"}
curl --request GET --url https://hastebin.com/raw/ilozemivib --header "Authorization: Bearer TOKEN" -o test.zip
ls -al ../*.zip
-rwxrwxrwx 1 aaron aaron 34008 Mar  5 17:55 ../schema.zip
-rwxrwxrwx 1 aaron aaron 51494 Mar  5 17:55 ../test.zip
AaronNGray commented 6 months ago
curl --request POST --url https://hastebin.com/documents -H  "Content-Type: application/zip" --header "Authorization: Bearer 9ca0fb871ca8575c3a1f01dd5b26ffee7fd9b37ff7902028ad788197de8a889f3cd4c2ae80601da279e8309b471a8d42aa5d0b1f8e74bba0e2de3d3fdd67c8af" --data-binary @../schema.zip
{"key":"irafetaxuz"}
curl --request GET --url https://hastebin.com/raw/irafetaxuz -H "accept: application/zip" --header "Authorization: Bearer 9ca0fb871ca8575c3a1f01dd5b26ffee7fd9b37ff7902028ad788197de8a889f3cd4c2ae80601da279e8309b471a8d42aa5d0b1f8e74bba0e2de3d3fdd67c8af" -o test.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 51494  100 51494    0     0  65236      0 --:--:-- --:--:-- --:--:-- 65182
HeyBanditoz commented 5 months ago

you may want to use a different pastebin

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

HeyBanditoz commented 3 months ago

Lol