Hi ! I’m trying to do OTA from Blynk Local Server and got some Errors. Someone help me, please ! Thanks !
From Local Server:
`curl -v -F file=@/media/tim/KINGSTON/ota/Test_V1.1_Template.ino.d1_mini.bin --insecure -u admin@blynk.cc:admin https://192.168.1.206:9443/admin/ota/start?token=KBx4BTQMD
- Trying 192.168.1.206…
- TCP_NODELAY set
- Connected to 192.168.1.206 (192.168.1.206) port 9443 (#0)
- ALPN, offering h2
- ALPN, offering http/1.1
- successfully set certificate verify locations:
- CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs - TLSv1.3 (OUT), TLS handshake, Client hello (1):
- TLSv1.3 (IN), TLS handshake, Server hello (2):
- TLSv1.2 (IN), TLS handshake, Certificate (11):
- TLSv1.2 (IN), TLS handshake, Server key exchange (12):
- TLSv1.2 (IN), TLS handshake, Server finished (14):
- TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
- TLSv1.2 (OUT), TLS change cipher, Client hello (1):
- TLSv1.2 (OUT), TLS handshake, Finished (20):
- TLSv1.2 (IN), TLS handshake, Finished (20):
- SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
- ALPN, server did not agree to a protocol
- Server certificate:
- subject: CN=localhost
- start date: Nov 27 05:20:28 2019 GMT
- expire date: Dec 31 23:59:59 9999 GMT
- issuer: CN=localhost
- SSL certificate verify result: self signed certificate (18), continuing anyway.
- Server auth using Basic with user ‘admin@blynk.cc’
POST /admin/ota/start?token=KBx4BTQMD HTTP/1.1
Host: 192.168.1.206:9443
Authorization: Basic YWRtaW5AYmx5bmsuY2M6SGFub2lAMjAyMA==
User-Agent: curl/7.58.0
Accept: /
Content-Length: 360837
Content-Type: multipart/form-data; boundary=------------------------6f5541d593ae5002
Expect: 100-continue
< HTTP/1.1 100 Continue`
From blynk.log:
04:17:25.735 ERROR- Unexpected error! Handler class : class cc.blynk.core.http.handlers.OTAHandler. Name : OTAHandler#0. Reason : writerIndex(360837) + minWritableBytes(360837) exceeds maxCapacity(360837): UnpooledSlicedByteBuf(ridx: 360837, widx: 360837, cap: 360837/360837, unwrapped: CompositeByteBuf(ridx: 0, widx: 360837, cap: 360837, components=45)). Channel : [id: 0x3e15dd93, L:/192.168.1.206:9443 - R:/192.168.1.206:46492].