Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to obtain a new access token. #88

Open
16isaac89 opened this issue Jun 17, 2024 · 0 comments
Open

Unable to obtain a new access token. #88

16isaac89 opened this issue Jun 17, 2024 · 0 comments

Comments

@16isaac89
Copy link

16isaac89 commented Jun 17, 2024

Am suddenly getting this error that wasnt there before
.env
MOMO_APP="Withlove Uganda"
MOMO_ENVIRONMENT="sandbox"
MOMO_CURRENCY="EUR"
MOMO_PROVIDER_CALLBACK_HOST="https://webhook.site/add9c878-b8e6-4b5c-9689-fc078f8ea6a7"
MOMO_PRODUCT="collection"
MOMO_COLLECTION_SUBSCRIPTION_KEY="b92534**********************"
MOMO_COLLECTION_ID="00e628ca-cbf2-4c3e-873f-d8eccf44de2c"
MOMO_COLLECTION_CALLBACK_URI="https://webhook.site/add9c878-b8e6-4b5c-9689-fc078f8ea6a7"
MOMO_COLLECTION_SECRET="da22778**********************"

log error
[2024-06-17 08:28:09] local.ERROR: HTTP_OUT_iHff2oOgUB [Request] POST /collection/token/
[2024-06-17 08:28:09] local.ERROR: HTTP_OUT_iHff2oOgUB [Request] [Headers]
POST /collection/token/ HTTP/1.1
Ocp-Apim-Subscription-Key: b925340b*********************
User-Agent: GuzzleHttp/7
Host: ericssonbasicapi2.azure-api.net
Accept: application/json
Content-Type: application/json
Authorization: Basic MDBlNjI4Y2EtY2JmMi00YzNlLTg3M2YtZDhlY2NmNDRkZTJjOmRhMjI3Nzg5ODg4MzQxMTM4YmU2ZjAwNDRjYmYyMTdi
[2024-06-17 08:28:09] local.ERROR: HTTP_OUT_iHff2oOgUB [Request] [Body] {"grant_type":"client_credentials","scope":""}
[2024-06-17 08:28:09] local.ERROR: HTTP_OUT_iHff2oOgUB [Response] HTTP/1.1 500 Internal Server Error Size: 111
[2024-06-17 08:28:09] local.ERROR: HTTP_OUT_iHff2oOgUB [Response] [Headers]
HTTP/1.1 500 Internal Server Error
Content-Length: 111
Content-Type: application/json
Request-Context: appId=cid-v1:e996501c-e721-4ac1-97ff-dc6887b85e8c
Date: Mon, 17 Jun 2024 08:28:20 GMT
Connection: close
[2024-06-17 08:28:09] local.ERROR: HTTP_OUT_iHff2oOgUB [Response] [Body] { "statusCode": 500, "message": "Internal server error", "activityId": "15f25467-8195-46dc-8688-81bdb397cc65" }
[2024-06-17 08:28:09] local.ERROR: HTTP_OUT_iHff2oOgUB [Error] Server error: POST https://ericssonbasicapi2.azure-api.net/collection/token/ resulted in a 500 Internal Server Error response:
{ "statusCode": 500, "message": "Internal server error", "activityId": "15f25467-8195-46dc-8688-81bdb397cc65" }

[2024-06-17 08:28:09] local.ERROR: Unable to obtain a new access token. {"exception":"[object] (Bmatovu\OAuthNegotiator\Exceptions\TokenRequestException(code: 0): Unable to obtain a new access token. at E:\installations\laragon\www\withloveug\vendor\bmatovu\oauth-negotiator\src\OAuth2Middleware.php:282)
[stacktrace]
#0 E:\installations\laragon\www\withloveug\vendor\bmatovu\oauth-negotiator\src\OAuth2Middleware.php(124): Bmatovu\OAuthNegotiator\OAuth2Middleware->requestNewToken()
#1 E:\installations\laragon\www\withloveug\vendor\bmatovu\oauth-negotiator\src\OAuth2Middleware.php(179): Bmatovu\OAuthNegotiator\OAuth2Middleware->getToken()

When i try to request for new credentials
Client APP ID - [X-Reference-Id, api_user_id]

Use client app ID? [00e628ca-cbf2-4c3e-873f-d8eccf44de2c]:

Client APP callback URI - [X-Callback-Url]

Use client app callback URI? [https://webhook.site/add9c878-b8e6-4b5c-9689-fc078f8ea6a7]:

Registering Client ID
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Status: 500 Internal Server Error

Body: { "statusCode": 500, "message": "Internal server error", "activityId": "cc74f5c7-5734-4bc1-b40b-ccf414f37bf7" }

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant