Segue o log completo:
I/flutter ( 6571): Request
I/flutter ( 6571): url: https://192.168.0.23:8080/transactions
I/flutter ( 6571): headers: {Content-type: application/json; charset=utf-8, password: 1000}
I/flutter ( 6571): body: {"value":200.0,"contact":{"name":"Sérgio","accountNumber":1000}}
I/flutter ( 6571): Request
I/flutter ( 6571): url: https://192.168.0.23:8080/transactions
I/flutter ( 6571): headers: {Content-type: application/json; charset=utf-8, password: 1000}
I/flutter ( 6571): body: {"value":200.0,"contact":{"name":"Sérgio","accountNumber":1000}}
E/flutter ( 6571): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: HandshakeException: Handshake error in client (OS Error:
E/flutter ( 6571): WRONG_VERSION_NUMBER(tls_record.cc:242))
E/flutter ( 6571):
E/flutter ( 6571): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: HandshakeException: Handshake error in client (OS Error:
E/flutter ( 6571): WRONG_VERSION_NUMBER(tls_record.cc:242))
E/flutter ( 6571):
F/crash_dump32(31673): crash_dump.cpp:474] failed to attach to thread 182: Permission denied
Quando eu altero o https para o http eu recebo outra mensagem de erro:
I/flutter ( 6571): Request
I/flutter ( 6571): url: http://192.168.0.23:8080/transactions
I/flutter ( 6571): headers: {Content-type: application/json; charset=utf-8, password: 1000}
I/flutter ( 6571): body: {"value":200.0,"contact":{"name":"Sérgio","accountNumber":1000}}
E/flutter ( 6571): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: Bad state: Insecure HTTP is not allowed by platform: http://192.168.0.23:8080/transactions
E/flutter ( 6571): #0 HttpClient.openUrl (dart:http/httpimpl.dart:2434:7)
E/flutter ( 6571): #1 HttpClient.openUrl (dart:http/http_impl.dart:2341:7)
E/flutter ( 6571): #2 IOClient.send (package:http/src/io_client.dart:30:38)
E/flutter ( 6571): #3 HttpClientWithInterceptor.send (package:http_interceptor/http_client_with_interceptor.dart:153:20)
E/flutter ( 6571): #4 HttpClientWithInterceptor.attemptRequest (package:httpinterceptor/http_client_with_interceptor.dart:207:19)
E/flutter ( 6571):
E/flutter ( 6571): #5 HttpClientWithInterceptor.sendUnstreamed (package:httpinterceptor/http_client_with_interceptor.dart:181:20)
E/flutter ( 6571):
E/flutter ( 6571): #6 TransactionWebClient.save (package:bytebank/http/webclients/transaction_webclient.dart:20:31)
E/flutter ( 6571):
E/flutter ( 6571): #7 TransactionFormState.build.. (package:bytebank/screens/transactionform.dart)
E/flutter ( 6571):