Javascript RPC Code Error: self signed certificate #1335
-
I am running a Javascript RPC code and it is showing this error: 2022-08-09T07:01:02.059Z DEBUG: I am alive The code seems correct and follows the example code in the reach github. What could be the reason for this error? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
You have two options. If you are using a standard RPC client, then you can disable TLS verification --- https://docs.reach.sh/rpc/#p_42 Or, you can give your RPC server a real TLS certificate --- https://docs.reach.sh/tool/#ref-usage-rpc-server You should do the first if you are testing and the second if you are deploying for real. |
Beta Was this translation helpful? Give feedback.
-
I passed the following options as below: const { rpc, rpcCallbacks } = await mkRPC({ I am getting the following error: kend/node_modules/@reach-sh/rpc-client/index.mjs:20 Error: Neither opts.verify` nor undefined environment variable are configured! What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
I noticed this message on 'import { mkRPC } from '@reach-sh/rpc-client'; when I hovered my cursor on the statement. module "/Users/georgekoshy/Documents/reach/oystro-with-oraclebackend/node_modules/@reach-sh/rpc-client/index" What should I do? Perhaps this may solve the issue |
Beta Was this translation helpful? Give feedback.
You have two options.
If you are using a standard RPC client, then you can disable TLS verification --- https://docs.reach.sh/rpc/#p_42
Or, you can give your RPC server a real TLS certificate --- https://docs.reach.sh/tool/#ref-usage-rpc-server
You should do the first if you are testing and the second if you are deploying for real.