forwardemail / forwardemail/supertest

Error msg: Unable to verify the first certificate with https request

Open
#576 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14.4k
Forks
782
PR merge metrics
No merged PRs in 30d

Description

Hi guys

Package.json
"jest": "24.6.0",
"supertest": "^4.0.2"

it('should return success on valid request', function(done) {
supertest('https://xxxxxx')
.get('xxxxxx')
.set('Accept', 'application/json')
.expect(200)
.end(done);
});

error msg
unable to verify the first certificate

Have tried process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; before test as well. This solution also didnt solve the issue.

Curl req working fine.

kindly advice

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.