Bug: HTTP request block (Android 4.4.4)

418 views
Skip to first unread message

Arena Closer

unread,
Jun 11, 2022, 9:07:27 AM6/11/22
to Automate
The HTTP request block does not work on my old Huawei Y550 running Android 4.4.4 KitKat. I have tried URLs from several unrelated API's, both GET and POST json, but each time the block throws one of three errors, see below. The same URLs work fine in the browser, so the device is connected to the internet. 

The errors that I've seen (in order of most occurring):
  • libcore.io.ErrnoException: isConnected failed: ENETUNREACH (Network is unreachable)
  • javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x611e18e8: Failure in SSL library, usually a protocol error error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:769 0x5f2d8dbc:0x00000000)
  • libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname) 

AM app is up to date, tried reboot, tried AM reinstall, tried factory reset. Nothing changed. The issue seems to be linked to a bug around TLS for pre-Lollipop devices, as explained in these threads: https://stackoverflow.com/questions/53198176/httpurlconnection-in-android-working-fine-but-okhttp-gives-network-is-unreacha and https://stackoverflow.com/questions/29916962/javax-net-ssl-sslhandshakeexception-javax-net-ssl-sslprotocolexception-ssl-han

Could you fix this bug?

Henrik "The Developer" Lindqvist

unread,
Jun 11, 2022, 9:30:36 AM6/11/22
to Automate
It seems to work just fine in the Android 4.4. emulator, with a reasonably modern/secure site, i.e. not using SSL.

Any particular URL i can test with?

As a test, try enabling the "Trust insecure certificates" option as it should only allow TLS.
Message has been deleted
Message has been deleted

Henrik "The Developer" Lindqvist

unread,
Jun 11, 2022, 9:54:42 AM6/11/22
to Automate
Don't post an URL including an API key.
On Saturday, June 11, 2022 at 3:07:27 PM UTC+2 arena....@gmail.com wrote:

Arena Closer

unread,
Jun 11, 2022, 9:58:48 AM6/11/22
to Automate

Both 'Trust insecure certificates' and 'Dont follow redirects' do not solve the issue. I'm now trying multiple API's and am mostly getting the first error I mentioned. Note that these API's are reachable with AM on my Android 9 without problems. Also note that using the HTTP request block used to work on my Huawei, but now since a few weeks/months these errors are making it impossible.

Op zaterdag 11 juni 2022 om 15:54:42 UTC+2 schreef Henrik "The Developer" Lindqvist:

Henrik "The Developer" Lindqvist

unread,
Jun 11, 2022, 10:33:59 AM6/11/22
to Automate
It does indeed fail. I'll investigate.

Henrik "The Developer" Lindqvist

unread,
Jun 11, 2022, 8:31:15 PM6/11/22
to Automate
Seems the sites require TLSv1.2, i think i can fix that, at least for Android 4.1+.

On Saturday, June 11, 2022 at 3:58:48 PM UTC+2 arena....@gmail.com wrote:

Arena Closer

unread,
Jun 12, 2022, 5:57:46 AM6/12/22
to Automate
That would be great, thanks!


Op zondag 12 juni 2022 om 02:31:15 UTC+2 schreef Henrik "The Developer" Lindqvist:

Arena Closer

unread,
Jun 25, 2022, 12:28:43 PM6/25/22
to Automate
Hi Henrik, do you think you can give an indication as to when this issue will be resolved in an update?

Many thanks!


Op zondag 12 juni 2022 om 11:57:46 UTC+2 schreef Arena Closer:

Henrik "The Developer" Lindqvist

unread,
Jun 25, 2022, 12:54:39 PM6/25/22
to Automate
Sorry no ETAs, but probably in a couple of weeks.
Opt-in for Alpha testing to get it ASAP: https://play.google.com/apps/testing/com.llamalab.automate
Reply all
Reply to author
Forward
0 new messages