Error: ForestAdmin server TLS certificate cannot be verified. Please check that your system time is set properly

Feature(s) impacted

NestJs server is not lifting and giving this error

Observed behavior

[Nest] - 17:09:34 INFO: StatesTrafficMapService: cacheInSession: info “Cached:: State Traffic Map”
Error: ForestAdmin server TLS certificate cannot be verified. Please check that your system time is set properly.
at Function.handleResponseError (/Users/neeleshsrivastava/Documents/lending/lending-bff-fe/node_modules/@forestadmin/forestadmin-client/src/utils/server.ts:39:13)
at Function.query (/Users/neeleshsrivastava/Documents/lending/lending-bff-fe/node_modules/@forestadmin/forestadmin-client/src/utils/server.ts:33:12)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at IpWhiteListService.getConfiguration (/Users/neeleshsrivastava/Documents/paytm/lending/lending-bff-fe/node_modules/@forestadmin/forestadmin-client/src/ip-whitelist/index.ts:18:18)
at IpWhitelist.bootstrap (/Users/neeleshsrivastava/Documents/lending/lending-bff-fe/node_modules/@forestadmin/agent/src/routes/security/ip-whitelist.ts:20:26)
at async Promise.all (index 4)
at Agent.getRouter (/Users/neeleshsrivastava/Documents/lending/lending-bff-fe/node_modules/@forestadmin/agent/src/agent.ts:184:5)
at async Promise.all (index 0)
at Agent.buildRouterAndSendSchema (/Users/neeleshsrivastava/Documents/lending/lending-bff-fe/node_modules/@forestadmin/agent/src/agent.ts:204:22)
at Agent.start (/Users/neeleshsrivastava/Documents/lending/lending-bff-fe/node_modules/@forestadmin/agent/src/agent.ts:72:20)

Expected behavior

Nest Js server should lift properly

Failure Logs

Nest] - 17:09:34 INFO: StatesTrafficMapService: cacheInSession: info “Cached:: State Traffic Map”
Error: ForestAdmin server TLS certificate cannot be verified. Please check that your system time is set properly.
at Function.handleResponseError (/Users/neeleshsrivastava/Documents/paytm/lending/lending-bff-fe/node_modules/@forestadmin/forestadmin-client/src/utils/server.ts:39:13)
at Function.query (/Users/neeleshsrivastava/Documents/paytm/lending/lending-bff-fe/node_modules/@forestadmin/forestadmin-client/src/utils/server.ts:33:12)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at IpWhiteListService.getConfiguration (/Users/neeleshsrivastava/Documents/paytm/lending/lending-bff-fe/node_modules/@forestadmin/forestadmin-client/src/ip-whitelist/index.ts:18:18)
at IpWhitelist.bootstrap (/Users/neeleshsrivastava/Documents/paytm/lending/lending-bff-fe/node_modules/@forestadmin/agent/src/routes/security/ip-whitelist.ts:20:26)
at async Promise.all (index 4)
at Agent.getRouter (/Users/neeleshsrivastava/Documents/paytm/lending/lending-bff-fe/node_modules/@forestadmin/agent/src/agent.ts:184:5)
at async Promise.all (index 0)
at Agent.buildRouterAndSendSchema (/Users/neeleshsrivastava/Documents/paytm/lending/lending-bff-fe/node_modules/@forestadmin/agent/src/agent.ts:204:22)
at Agent.start (/Users/neeleshsrivastava/Documents/paytm/lending/lending-bff-fe/node_modules/@forestadmin/agent/src/agent.ts:72:20)

Hi @neeleshpaytm,

Do you have a custom domain on your machine ? This just looks like a certificate issue

Hi @vince ,
No M just trying to run it locally on my mac. As far as I know there is no custom domain setup on my mac

And did you update your time system ?

@vince No. it is set to Auto. I am in GMT+5:30 TImeZone

Hello @neeleshpaytm :wave:,

Sorry for the delay :pray:, I’m looking in our logs for the more precise cause of your error.

Can you give me please your project name and your environment ?

@Florian_Gonzales project name is “Mock Dash Demo” and Env in developement

1 Like

Do you have the agent option “forestServerUrl” ? And do you have change this value ? Your agent seems not to be able to contact our servers, if you have change this value you can try to remove it :slight_smile: ?

Kind regards,

Florian

Hi @Florian_Gonzales Nope m not having that option in my config. This is what my config looks like
const agent = createAgent({
authSecret: process.env.FOREST_AUTH_SECRET,
envSecret: process.env.FOREST_ENV_SECRET,
isProduction: process.env.NODE_ENV === ‘production’,
typingsPath: ‘./typings.ts’,
typingsMaxDepth: 5,

}).addDataSource(createSqlDataSource(process.env.DATABASE_URL));

Hello @neeleshpaytm,

It’s strange :thinking:, can you log the original error like I do in the screenshot ? It would help us to better understand your issue. :pray: