afterSave failed

afterSave failed for theSandboxLandTransfer for user H0seKvTFXPoMUjFeLrB1g5vV:
  Input: {"log_index":34,"transaction_hash":"0x0e5a5d59b159bb423af70f9abbce2c2fabd98161f3f8f06a71ab1c17d7ee54eb","createdAt":"2022-05-29T08:47:29.789Z","updatedAt":"2022-05-29T08:50:10.040Z","address":"0x5cc5b05a8a13e3fbdb0bb9fccd98d38e50f90c38","assetId":"90109","assetId_decimal":{"__type":"NumberDecimal","value":"90109"},"block_hash":"0x7c5839e63e4331f1a4f57a2f016410599a1f452bb4984952ce875d2564af9f9b","block_number":14865527,"block_timestamp":{"__type":"Date","iso":"2022-05-29T08:47:25.000Z"},"confirmed":true,"from":"0xc47e52d646596887e3f21c224e4163b357a12470","to":"0x18d5d7fa7488adc1ad789341de4a6a9b8a6678c0","transaction_index":21,"objectId":"tvDLcbCjjbKDtbIPk4Vx3x1B"}
  Error: {"message":"self signed certificate","code":141}

what is the context? what code was running in that after save?
something that makes some https requests?

Moralis.Cloud.afterSave("theSandboxLandTransfer", async (request) => {
    const logger = Moralis.Cloud.getLogger();
    logger.error("theSandboxLandTransfer : "+ request.object.get("transaction_hash"));
    Moralis.Cloud.httpRequest({
        method: 'POST',
        url: 'https://xxxx.xxx/webhook/order/transferred',
        headers: {
            'Content-Type': 'application/json;charset=utf-8'
        },
        body: request.object
    }).then(function(httpResponse) {
        logger.info(httpResponse.text);
    }, function(httpResponse) {
        logger.error('Request failed with response code ' + httpResponse.status);
    });
});

the assumption for now is that this url uses a self signed ssl certificate
you could try with a simple http request, or with an url that uses a non self signed certificate

@yossFazwaz
Let us know if you were able to fix, i did some research and came around this: https://github.com/aspnet/JavaScriptServices/issues/1090

an old issue though but its regarding Nodejs not able to verify self attested (OS-configured) CAs.

What is the environment you are using and nodejs version?