Error: unable to verify the first certificate in linux #191
Hellen-Zhu
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I defined configs in currents.config.js and trying to use cypress-cloud api as below:
const { run } = require("cypress-cloud");
require("dotenv").config();
// const fs = require("fs");
async function runTests() {
const ciBuildId =
elite-${new Date().toISOString()}
;console.log(process.ENV);
const result = await run({
ciBuildId,
spec: ["cypress/e2e/**/*.cy.js"],
});
}
runTests();
I am able to run locally in windows env, but got error running in linux server as below:
Discovered 1 spec files
Tags: false; Group: false; Parallel: false; Batch Size: 3
Connecting to cloud orchestration service...
(node:17) UnhandledPromiseRejectionWarning: Error: unable to verify the first certificate
at /app/node_modules/lib/httpClient/httpClient.ts:127:13
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at createRun (/app/node_modules/lib/api/api.ts:17:20)
at run (/app/node_modules/lib/run.ts:96:15)
(Use
node --trace-warnings ...
to show where the warning was created)(node:17) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 10)(node:17) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Beta Was this translation helpful? Give feedback.
All reactions