mpesa

How to solve Safaricom C2B error "Unable to identify proxy for host"


I am working with Safaricom Mpesa Daraja Api using the test credentials. Everything was working okay but suddennly I start getting the error.

{"fault":{"faultstring":"Unable to identify proxy for host: secure and url: \/mpesa\/stkpush\/v1\/processrequest","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}

Below is the curl post data:

array:11 [▼
  "BusinessShortCode" => 174379
  "Password" => "My Password Here"
  "Timestamp" => "20210429060420"
  "TransactionType" => "CustomerPayBillOnline"
  "Amount" => 1
  "PartyA" => "25470..My Number Here"
  "PartyB" => 174379
  "PhoneNumber" => "25470..My Number Here"
  "CallBackURL" => "https://f0d77d3643b3.ngrok.io/confirmation/deposit_1619678899"
  "AccountReference" => "Account"
  "TransactionDesc" => "Testing stk push on sandbox"
]

I have seen a few references of these error though no one has given a solution to it. How do I solve it.


Solution

  • Turns out the only way to solve this is to contact Safaricom Api Support team and ask them to rectify the issue.