Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Sending request failed due to certificate verification failure #4

Open
1 of 2 tasks
Tadjaur opened this issue Apr 1, 2023 · 0 comments
Open
1 of 2 tasks

Sending request failed due to certificate verification failure #4

Tadjaur opened this issue Apr 1, 2023 · 0 comments

Comments

@Tadjaur
Copy link
Contributor

Tadjaur commented Apr 1, 2023

Possible fast fix:

Good fix:

{
    "message": "failed to generate token",
    "raw": {
        "message": "unable to verify the first certificate",
        "name": "Error",
        "stack": "Error: unable to verify the first certificate\n    at AxiosError.from (/usr/src/app/node_modules/axios/dist/node/axios.cjs:825:14)\n    at RedirectableRequest.handleRequestError (/usr/src/app/node_modules/axios/dist/node/axios.cjs:2973:25)\n    at RedirectableRequest.emit (node:events:513:28)\n    at eventHandlers.<computed> (/usr/src/app/node_modules/follow-redirects/index.js:14:24)\n    at ClientRequest.emit (node:events:513:28)\n    at TLSSocket.socketErrorListener (node:_http_client:488:9)\n    at TLSSocket.emit (node:events:513:28)\n    at emitErrorNT (node:internal/streams/destroy:151:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:116:3)\n    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)",
        "config": {
            "transitional": {
                "silentJSONParsing": true,
                "forcedJSONParsing": true,
                "clarifyTimeoutError": false
            },
            "adapter": [
                "xhr",
                "http"
            ],
            "transformRequest": [
                null
            ],
            "transformResponse": [
                null
            ],
            "timeout": 0,
            "xsrfCookieName": "XSRF-TOKEN",
            "xsrfHeaderName": "X-XSRF-TOKEN",
            "maxContentLength": -1,
            "maxBodyLength": -1,
            "env": {},
            "headers": {
                "Accept": "application/json, text/plain, */*",
                "Content-Type": "application/x-www-form-urlencoded",
                "Authorization": "Basic ZjRXdTZhZ1pxYUJYeW1iTXIxd0pTWnF1dlFBYTpnbndHM3FwVzE3WnU5bmpkUEpmYnM0dllLZXNh",
                "User-Agent": "axios/1.3.4",
                "Content-Length": "29",
                "Accept-Encoding": "gzip, compress, deflate, br"
            },
            "method": "post",
            "url": "https://api-s1.orange.cm/token",
            "data": "grant_type=client_credentials"
        },
        "code": "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
        "status": null
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant