question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown error during handshake

See original GitHub issue

I setup all the credentials as per the details provided on my daraja API account. I keep on getting the above named error in the console log. I am farely new to Daraja API so any assistance would be highly appreciated. Did I miss something? nothing happens when after I input the phone number and press ‘Request MpesaExpress’

`//TODO :: REPLACE WITH YOUR OWN CREDENTIALS :: THIS IS SANDBOX DEMO daraja = Daraja.with(“[I set my own from daraja api]”, “[same here”, new DarajaListener<AccessToken>() { @Override public void onResult(@NonNull AccessToken accessToken) { Log.i(MPESAExpressActivity.this.getClass().getSimpleName(), accessToken.getAccess_token()); Toast.makeText(MPESAExpressActivity.this, "TOKEN : " + accessToken.getAccess_token(), Toast.LENGTH_SHORT).show(); }

        @Override
        public void onError(String error) {
            Log.e(MPESAExpressActivity.this.getClass().getSimpleName(), error);
        }
    });`

Set as well:

//TODO :: REPLACE WITH YOUR OWN CREDENTIALS :: THIS IS SANDBOX DEMO LNMExpress lnmExpress = new LNMExpress( "600616", "[set]", //https://developer.safaricom.co.ke/test_credentials TransactionType.CustomerBuyGoodsOnline, // TransactionType.CustomerPayBillOnline <- Apply any of these two "10", "254708374149", "174379", phoneNumber, "http://mycallbackurl.com/checkout.php", "001ABC", "Goods Payment" );

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gilokimucommented, Mar 28, 2019

Yeah, it just stopped working all of a sudden, and I knew I hadn’t touched any of the network classes. I am on break for the rest of the week, so I can take a look at it tomorrow.

EDIT Could we just raise this issue with Safaricom?

0reactions
jumaallancommented, Apr 2, 2019

This has been sorted by PR #27

It’s already merged into master. The next release should fix this issue. Good work @gilokimu. We might need to do a small patch to fix issues currently being experienced as we continue working on other issues.

To test current state on master and do a release

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTPS : Unknown error during handshake #1306 - GitHub
javax.net.ssl.SSLException: SSL handshake aborted: ssl=0x61654530: I/O error during system call, Connection reset by peer there is https URL ...
Read more >
How to Fix the “SSL Handshake Failed” Error? - ClickSSL
SSL Handshake Failed is an error that happen when the client and server both not able make secure connection with broswer.
Read more >
How to Fix “SSL Handshake Failed” & "Cloudflare 525" Error
The SSL Handshake Failed error occurs when the server and browser are unable to establish a secure connection.
Read more >
What Is SSL Handshake & How Do I Fix SSL ... - HubSpot Blog
SSL Handshake Failed is an error message that occurs when the client or server wasn't able to establish a secure connection. This might...
Read more >
SSLHandshakeException SSLProtocolException SSL ...
SSLHandshakeException SSLProtocolException SSL handshake aborted Unknown error during handshake. 276 views 3 months ago. mb ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found