You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have upgraded to version 1.3.0 and now the generate_access_token method is raising a Unable to generate access token error.
File "/home/bwaks/Desktop/tech/Job/views.py", line 418, in MakePaymentView
response = cl.stk_push(phone_number, amount, account_reference, transaction_desc, callback_url)
File "/home/bwaks/Desktop/tech/tech/lib/python3.10/site-packages/django_daraja/mpesa/core.py", line 115, in stk_push
'Authorization': 'Bearer ' + mpesa_access_token(),
File "/home/bwaks/Desktop/tech/tech/lib/python3.10/site-packages/django_daraja/mpesa/utils.py", line 176, in mpesa_access_token
access_token = generate_access_token()
File "/home/bwaks/Desktop/tech/tech/lib/python3.10/site-packages/django_daraja/mpesa/utils.py", line 149, in generate_access_token
raise MpesaError('Unable to generate access token')
django_daraja.mpesa.exceptions.MpesaError: Unable to generate access token
The text was updated successfully, but these errors were encountered:
I have upgraded to version 1.3.0 and now the generate_access_token method is raising a Unable to generate access token error.
File "/home/bwaks/Desktop/tech/Job/views.py", line 418, in MakePaymentView
response = cl.stk_push(phone_number, amount, account_reference, transaction_desc, callback_url)
File "/home/bwaks/Desktop/tech/tech/lib/python3.10/site-packages/django_daraja/mpesa/core.py", line 115, in stk_push
'Authorization': 'Bearer ' + mpesa_access_token(),
File "/home/bwaks/Desktop/tech/tech/lib/python3.10/site-packages/django_daraja/mpesa/utils.py", line 176, in mpesa_access_token
access_token = generate_access_token()
File "/home/bwaks/Desktop/tech/tech/lib/python3.10/site-packages/django_daraja/mpesa/utils.py", line 149, in generate_access_token
raise MpesaError('Unable to generate access token')
django_daraja.mpesa.exceptions.MpesaError: Unable to generate access token
The text was updated successfully, but these errors were encountered: