-
Bug
-
Resolution: Fixed
-
Medium
How I can to upload apk file with size more than 50mb to bitbucket downloads ?
I have next error with debug information on my pipeline:
- curl
v -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"apk/piiics-release${BITBUCKET_BUILD_NUMBER}.apk"
Warning: setting file apk/piiics-release-41.apk failed!
Note: Unnecessary use of -X or --request, POST is already inferred.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 -::- -::- -::- 0* Trying 18.205.93.8...
- TCP_NODELAY set
- Connected to api.bitbucket.org (18.205.93.8) port 443 (#0)
- ALPN, offering h2
- ALPN, offering http/1.1
- successfully set certificate verify locations:
- CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none - TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [235 bytes data] - TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [100 bytes data] - TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [2417 bytes data] - TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [148 bytes data] - TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data] - TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data] - TLSv1.2 (OUT), TLS change cipher, Client hello (1):
} [1 bytes data] - TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data] - TLSv1.2 (IN), TLS change cipher, Client hello (1):
{ [1 bytes data] - TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data] - SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
- ALPN, server accepted to use h2
- Server certificate:
- subject: C=US; ST=California; L=San Francisco; O=Atlassian, Inc.; OU=Bitbucket; CN=*.bitbucket.org
- start date: Jun 12 00:00:00 2017 GMT
- expire date: Jun 16 12:00:00 2020 GMT
- subjectAltName: host "api.bitbucket.org" matched cert's "*.bitbucket.org"
- issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
- SSL certificate verify ok.
- Using HTTP2, server supports multi-use
- Connection state changed (HTTP/2 confirmed)
- Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
- Server auth using Basic with user 'adanchuk'
- Using Stream ID: 1 (easy handle 0x557f68b095e0)
POST /2.0/repositories/piiics/android/downloads HTTP/2
Host: api.bitbucket.org
Authorization: Basic YWRhbmNodWs6dm9sazE2MDU5MA==
User-Agent: curl/7.61.0
Accept: /
Transfer-Encoding: chunked
Content-Type: multipart/form-data; boundary=------------------------a7f202b12e547cc7
- Connection state changed (MAX_CONCURRENT_STREAMS == 200)!
} [166 bytes data] - read function returned funny value
100 166 0 0 0 166 0 7904 -::- -::- -::- 7904 - Connection BCLOUD-0 to host api.bitbucket.org left intact
curl: (26) read function returned funny value
When I tried to upload small file is ok.
But when I tried file up to 80mb is failed.
How I can upload my apk file ?