bnjunge / MPESA-API-Tutorial

This is a Daraja API MPESA tutorial repo
MIT License
52 stars 67 forks source link

Hi i have been tryimg to write a script for c2b but i get a similar error code i,e #9

Closed PatrickNthiwa closed 1 year ago

PatrickNthiwa commented 1 year ago
    Hi i have been tryimg to write a script for c2b but i get a similar error code i,e

{"Envelope":{"encodingStyle":"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/","Body":{"Fault":{"faultcode":"soap:Server","faultstring":"Execution of ServiceCallout SC-SearchURL failed. Reason: ResponseCode 503 is treated as error","faultactor":{},"detail":{"source":{"errorcode":"steps.servicecallout.ExecutionFailed"}}}}}}{"Envelope":{"encodingStyle":"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/","Body":{"Fault":{"faultcode":"soap:Server","faultstring":"Execution of ServiceCallout SC-SearchURL failed. Reason: ResponseCode 503 is treated as error","faultactor":{},"detail":{"source":{"errorcode":"steps.servicecallout.ExecutionFailed"}}}}}}

what can i do to solve the problem because i have tried to use the shortcode mentioned ealier but still the error is there!

Originally posted by @PatrickNthiwa in https://github.com/bnjunge/MPESA-API-Tutorial/issues/2#issuecomment-1312464926

PatrickNthiwa commented 1 year ago

closed

odhis101 commented 1 year ago

how did you fix the issue ?

PatrickNthiwa commented 1 year ago

Am still stuck there

On Mon, Nov 14, 2022, 18:39 Joshua Oyugi @.***> wrote:

how did you fix the issue ?

— Reply to this email directly, view it on GitHub https://github.com/bnjunge/MPESA-API-Tutorial/issues/9#issuecomment-1313951578, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPEBQ32JKIYJSV5TEKRYNLWIJMLZANCNFSM6AAAAAAR6LVIGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

PatrickNthiwa commented 1 year ago

Am on attachment ,I was given the task of creating a wp website and intergrate it with c2b mpesa ,I came across your channel and it helped me alot ,not until I encountered the error and got stuck there for 3 days now

On Mon, Nov 14, 2022, 21:54 PATRICK WAMBUA @.***> wrote:

Am still stuck there

On Mon, Nov 14, 2022, 18:39 Joshua Oyugi @.***> wrote:

how did you fix the issue ?

— Reply to this email directly, view it on GitHub https://github.com/bnjunge/MPESA-API-Tutorial/issues/9#issuecomment-1313951578, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPEBQ32JKIYJSV5TEKRYNLWIJMLZANCNFSM6AAAAAAR6LVIGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

PatrickNthiwa commented 1 year ago

I would appreciate your assistance so much

On Mon, Nov 14, 2022, 21:57 PATRICK WAMBUA @.***> wrote:

Am on attachment ,I was given the task of creating a wp website and intergrate it with c2b mpesa ,I came across your channel and it helped me alot ,not until I encountered the error and got stuck there for 3 days now

On Mon, Nov 14, 2022, 21:54 PATRICK WAMBUA @.***> wrote:

Am still stuck there

On Mon, Nov 14, 2022, 18:39 Joshua Oyugi @.***> wrote:

how did you fix the issue ?

— Reply to this email directly, view it on GitHub https://github.com/bnjunge/MPESA-API-Tutorial/issues/9#issuecomment-1313951578, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPEBQ32JKIYJSV5TEKRYNLWIJMLZANCNFSM6AAAAAAR6LVIGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

odhis101 commented 1 year ago

I have been in contact with the Safaricom and they did notice that there was something wrong with the callbacks and they are working on it. Currently the issue is still ongoing on my side as well

PatrickNthiwa commented 1 year ago

Ok, thanks for the update.

And what could be causing the json data not to be written on my .txt file as well?

On Mon, Nov 14, 2022, 22:21 Joshua Oyugi @.***> wrote:

I have been in contact with the Safaricom and they did notice that there was something wrong with the callbacks and they are working on it. Currently the issue is still ongoing on my side as well

— Reply to this email directly, view it on GitHub https://github.com/bnjunge/MPESA-API-Tutorial/issues/9#issuecomment-1314259692, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPEBQ625TWYJHATM5EIXW3WIKGLHANCNFSM6AAAAAAR6LVIGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

odhis101 commented 1 year ago

A callback is an asynchronous API request that originates from the API server and is sent to the client in response to an earlier request sent by that client. There must be a server error on safaricoms side that doesn't send the callback meaning it wouldn't write to your txt file.

PatrickNthiwa commented 1 year ago

Thank you for the clarification. But kindly allow me to come back you again Incase things don't work by tommorow

On Mon, Nov 14, 2022, 22:55 Joshua Oyugi @.***> wrote:

A callback is an asynchronous API request that originates from the API server and is sent to the client in response to an earlier request sent by that client. There must be a server error on safaricoms side that doesn't send the callback meaning it wouldn't write to your txt file.

— Reply to this email directly, view it on GitHub https://github.com/bnjunge/MPESA-API-Tutorial/issues/9#issuecomment-1314294549, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPEBQY73VZ3T72OHL6GWL3WIKKMFANCNFSM6AAAAAAR6LVIGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

odhis101 commented 1 year ago

any updates ? is it working for you now ?

PatrickNthiwa commented 1 year ago

No, it has not worked yet. Am still getting the same error message.

On Tue, 15 Nov 2022 at 14:32, Joshua Oyugi @.***> wrote:

any updates ? is it working for you know ?

— Reply to this email directly, view it on GitHub https://github.com/bnjunge/MPESA-API-Tutorial/issues/9#issuecomment-1315181261, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPEBQY5ZZ6MXJK4IRS3T33WINYDBANCNFSM6AAAAAAR6LVIGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

PatrickNthiwa commented 1 year ago

This is the error am still having

{"Envelope":{"encodingStyle":"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/","Body":{"Fault":{"faultcode":"soap:Server","faultstring":"Execution of ServiceCallout SC-SearchURL failed. Reason: ResponseCode 503 is treated as error","faultactor":{},"detail":{"source":{"errorcode":"steps.servicecallout.ExecutionFailed"}}}}}}

On Wed, 16 Nov 2022 at 09:34, PATRICK WAMBUA @.***> wrote:

No, it has not worked yet. Am still getting the same error message.

On Tue, 15 Nov 2022 at 14:32, Joshua Oyugi @.***> wrote:

any updates ? is it working for you know ?

— Reply to this email directly, view it on GitHub https://github.com/bnjunge/MPESA-API-Tutorial/issues/9#issuecomment-1315181261, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPEBQY5ZZ6MXJK4IRS3T33WINYDBANCNFSM6AAAAAAR6LVIGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

PatrickNthiwa commented 1 year ago

Hi Did you find a way the error can be solved?

On Wed, 16 Nov 2022 at 09:35, PATRICK WAMBUA @.***> wrote:

This is the error am still having

{"Envelope":{"encodingStyle":"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/","Body":{"Fault":{"faultcode":"soap:Server","faultstring":"Execution of ServiceCallout SC-SearchURL failed. Reason: ResponseCode 503 is treated as error","faultactor":{},"detail":{"source":{"errorcode":"steps.servicecallout.ExecutionFailed"}}}}}}

On Wed, 16 Nov 2022 at 09:34, PATRICK WAMBUA @.***> wrote:

No, it has not worked yet. Am still getting the same error message.

On Tue, 15 Nov 2022 at 14:32, Joshua Oyugi @.***> wrote:

any updates ? is it working for you know ?

— Reply to this email directly, view it on GitHub https://github.com/bnjunge/MPESA-API-Tutorial/issues/9#issuecomment-1315181261, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPEBQY5ZZ6MXJK4IRS3T33WINYDBANCNFSM6AAAAAAR6LVIGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

PatrickNthiwa commented 1 year ago

Hi

On Thu, 17 Nov 2022 at 13:39, PATRICK WAMBUA @.***> wrote:

Hi Did you find a way the error can be solved?

On Wed, 16 Nov 2022 at 09:35, PATRICK WAMBUA @.***> wrote:

This is the error am still having

{"Envelope":{"encodingStyle":"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/","Body":{"Fault":{"faultcode":"soap:Server","faultstring":"Execution of ServiceCallout SC-SearchURL failed. Reason: ResponseCode 503 is treated as error","faultactor":{},"detail":{"source":{"errorcode":"steps.servicecallout.ExecutionFailed"}}}}}}

On Wed, 16 Nov 2022 at 09:34, PATRICK WAMBUA @.***> wrote:

No, it has not worked yet. Am still getting the same error message.

On Tue, 15 Nov 2022 at 14:32, Joshua Oyugi @.***> wrote:

any updates ? is it working for you know ?

— Reply to this email directly, view it on GitHub https://github.com/bnjunge/MPESA-API-Tutorial/issues/9#issuecomment-1315181261, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPEBQY5ZZ6MXJK4IRS3T33WINYDBANCNFSM6AAAAAAR6LVIGQ . You are receiving this because you modified the open/close state.Message ID: @.***>