When I call strava api, an error like this comes up

109 views
Skip to first unread message

Saranjith P

unread,
May 16, 2022, 5:30:00 AM5/16/22
to Strava API
{
    "errorType": "Runtime.UnhandledPromiseRejection",
    "errorMessage": "RequestError: Error: Client network socket disconnected before secure TLS connection was established",
    "reason": {
        "errorType": "RequestError",
        "errorMessage": "Error: Client network socket disconnected before secure TLS connection was established",
        "name": "RequestError",
        "message": "Error: Client network socket disconnected before secure TLS connection was established",
        "cause": {
            "errorType": "Error",
            "errorMessage": "Client network socket disconnected before secure TLS connection was established",
            "code": "ECONNRESET",
            "path": null,
            "host": "www.strava.com",
            "port": 443,
            "stack": [
                "Error: Client network socket disconnected before secure TLS connection was established",
                "    at connResetException (internal/errors.js:639:14)",
                "    at TLSSocket.onConnectEnd (_tls_wrap.js:1570:19)",
                "    at TLSSocket.emit (events.js:412:35)",
                "    at endReadableNT (internal/streams/readable.js:1334:12)",
                "    at processTicksAndRejections (internal/process/task_queues.js:82:21)"
            ]
        },
        "error": {
            "errorType": "Error",
            "errorMessage": "Client network socket disconnected before secure TLS connection was established",
            "code": "ECONNRESET",
            "path": null,
            "host": "www.strava.com",
            "port": 443,
            "stack": [
                "Error: Client network socket disconnected before secure TLS connection was established",
                "    at connResetException (internal/errors.js:639:14)",
                "    at TLSSocket.onConnectEnd (_tls_wrap.js:1570:19)",
                "    at TLSSocket.emit (events.js:412:35)",
                "    at endReadableNT (internal/streams/readable.js:1334:12)",
                "    at processTicksAndRejections (internal/process/task_queues.js:82:21)"
            ]
        },
        "options": {
            "baseUrl": "https://www.strava.com/api/v3/",
            "headers": {
                "User-Agent": "node-strava-v3 v2.1.0",
                "Authorization": "Bearer 1f387a37fbc11376cf1dc4cd79129af94c1e7e65"
            },
            "json": true,
            "url": "activities/7138434092?",
            "resolveWithFullResponse": true,
            "simple": true,
            "transform2xxOnly": false
        },
        "stack": [
            "RequestError: Error: Client network socket disconnected before secure TLS connection was established",
            "    at new RequestError (/var/task/node_modules/request-promise-core/lib/errors.js:14:15)",
            "    at Request.plumbing.callback (/var/task/node_modules/request-promise-core/lib/plumbing.js:87:29)",
            "    at Request.RP$callback [as _callback] (/var/task/node_modules/request-promise-core/lib/plumbing.js:46:31)",
            "    at self.callback (/var/task/node_modules/request/request.js:185:22)",
            "    at Request.emit (events.js:400:28)",
            "    at Request.onRequestError (/var/task/node_modules/request/request.js:877:8)",
            "    at ClientRequest.emit (events.js:400:28)",
            "    at TLSSocket.socketErrorListener (_http_client.js:475:9)",
            "    at TLSSocket.emit (events.js:400:28)",
            "    at emitErrorNT (internal/streams/destroy.js:106:8)",
            "    at emitErrorCloseNT (internal/streams/destroy.js:74:3)",
            "    at processTicksAndRejections (internal/process/task_queues.js:82:21)"
        ]
    },
    "promise": {},
    "stack": [
        "Runtime.UnhandledPromiseRejection: RequestError: Error: Client network socket disconnected before secure TLS connection was established",
        "    at process.<anonymous> (/var/runtime/index.js:35:15)",
        "    at process.emit (events.js:400:28)",
        "    at process.emit (/var/task/node_modules/source-map-support/source-map-support.js:516:21)",
        "    at processPromiseRejections (internal/process/promises.js:245:33)",
        "    at processTicksAndRejections (internal/process/task_queues.js:96:32)"
    ]
}
Reply all
Reply to author
Forward
0 new messages