Android Question Fail to login keep showing SSL handshake timed out

IamTrying

Active Member
Licensed User
Fail to login keep showing following error?

code:
B4X:
Sub btnDownload_Click
    Log(">>> btnDownload_Click")
      
    myService.myAgentID = editText1.Text
    myService.myUsername = editText2.Text
    myService.myPassword = editText3.Text
    myService.myFamily = editText4.Text
    'Log(editText1.Text)
      
    job1.Initialize("job1", Me)
  
    myService.myLoginPostString = "username=" & myService.myUsername & _
    "&password=" & myService.myPassword & _
    "&family=" & myService.myFamily
    myService.myLoginURL = "https://" & myService.myAgentID & ".abcd.com/app/applogin"
    job1.PostString(myService.myLoginURL, myService.myLoginPostString)
  
    'DownloadService.URL = "https://i.imgur.com/jWNTgcu.jpg"
    'StartService(DownloadService)
    'btnDownload.Enabled = False
End Sub

Error:
B4X:
ResponseError. Reason: java.net.SocketTimeoutException: SSL handshake timed out, Response:
JobName = job1, Success = false
Error: java.net.SocketTimeoutException: SSL handshake timed out
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
>>> btnDownload_Click
Connected to B4A-Bridge (Wifi)
ResponseError. Reason: java.net.SocketTimeoutException: SSL handshake timed out, Response:
JobName = job1, Success = false
Error: java.net.SocketTimeoutException: SSL handshake timed out
Connected to B4A-Bridge (Wifi)
Connected to B4A-Bridge (Wifi)
>>> btnDownload_Click
Connected to B4A-Bridge (Wifi)
 

Semen Matusovskiy

Well-Known Member
Licensed User
Too many possible reasons. For example, it's necessary to increase timeout. But may be wrong parameters and web server do not want to answer.

Did you try to create simple html with a form and to look in WebBrowser ?
 
Upvote 0
Top