linux - Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported - Stack Overflow

Stack Overflow

  1. About

  2. Products

  3. For Teams

  4. Stack Overflow Public questions & answers

  5. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers

  6. Jobs Programming & related technical career opportunities

  7. Talent Recruit tech talent & build your employer brand

  8. Advertising Reach developers & technologists worldwide

  9. About the company

Loading…

  1. Log in Sign up

  2. current community

your communities

Sign uplog in

more stack exchange communities

company blog Join Stack Overflow to learn, share knowledge, and build your career.

Sign up with email Sign up Sign up with Google Sign up with GitHub Sign up with Facebook


  1. Home

    1. Public

    2. Questions


    3. Tags


    4. Users

    5. Collectives

    6. Explore Collectives

    7. Find a Job


    8. Jobs


    9. Companies

  2. Teams
    Stack Overflow for Teams – Collaborate and share knowledge with a private group. linux - Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported - Stack Overflow - 图1
    Create a free Team What is Teams?

    1. Teams


    2. Create free Team
      “Stack Overflow for Teams is a private, secure spot for your organization’s questions and answers.”)

Collectives on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more

Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported

Ask Question

Asked 1 month ago

Active 1 month ago

Viewed 935 times

Report this ad

This question shows research effort; it is useful and clear

1

This question does not show any research effort; it is unclear or not useful

Bookmark this question.

Show activity on this post.

I am setting up hardhat in Linux. I have set up the react app first using these commands.

  1. npx create-react-app react-dapp
  2. cd react-dapp

Then I have installed some hardhat dependencies using this command.

npm install ethers hardhat @nomiclabs/hardhat-waffle \
        ethereum-waffle chai \
        @nomiclabs/hardhat-ether

This all done correctly. Then I have created the hardhat configs and setup.

npx hardhat

Then I have edited the hardhat.config.js file. I have places this.

module.exports = {
solidity: "0.8.4",
paths: {                         
   artifacts: './src/artifacts',  
},
networks: {                 
  hardhat: {
   chainId: 1337                
 }

} }; After that I have created the node.

npx hardhat node

I got this error:

Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported

linux api blockchain metamask hardhat

Share

Share a link to this question

Copy linkCC BY-SA 4.0

Follow

Follow this question to receive notifications

asked Oct 21 at 9:41

[

linux - Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported - Stack Overflow - 图2

](/users/14673713/enstazao)

enstazaoenstazao

944 bronze badges

Add a comment |

2 Answers 2

Active Oldest Votes

This answer is useful

6

This answer is not useful

Show activity on this post.

Had the same problem. Using Node 17.x and it has an updated openssl that is a a breaking change.

This worked for me because I’m using yarn.

export NODE_OPTIONS=--openssl-legacy-provider

You could also try just using the --openssl-legacy-provider switch on node.

Share

Share a link to this answer

Copy linkCC BY-SA 4.0

Follow

Follow this answer to receive notifications

answered Oct 22 at 5:37

[

linux - Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported - Stack Overflow - 图3

](/users/17216955/lenifoti)

lenifotilenifoti

6111 bronze badge

Add a comment |

This answer is useful

1

This answer is not useful

Show activity on this post.

I ran into this exact problem just now, however since I have nvm, my cheap work around is to used node v16 for now.

Share

Share a link to this answer

Copy linkCC BY-SA 4.0

Follow

Follow this answer to receive notifications

answered Oct 28 at 4:38

[

linux - Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported - Stack Overflow - 图4

](/users/11416326/ogbee)

OgbeeOgbee

2133 bronze badges

1

  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    Community Bot
    Oct 28 at 7:10

Add a comment |

Your Answer

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

Draft saved

Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Submit

Post as a guest

Name

Email

Required, but never shown

Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged linux api blockchain metamask hardhat or ask your own question.

The Overflow Blog

Featured on Meta

Looking for a job?

[

View more jobs on Stack Overflow

](https://stackoverflow.com/jobs?so_medium=Ad&so_source=JobAd&so_campaign=GenericBlue)

linux - Error HH604: Error running JSON-RPC server: error:0308010C:digital envelope routines::unsupported - Stack Overflow - 图13

Linked

[

0

](https://stackoverflow.com/q/69717140?lq=1 “Vote score (upvotes - downvotes)”)Chainlink Hackathon 21 Hardhat problem deploying node

Related

[

400

](https://stackoverflow.com/q/11990708?rq=1 “Vote score (upvotes - downvotes)”)error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock

[

0

](https://stackoverflow.com/q/50254856?rq=1 “Vote score (upvotes - downvotes)”)Monero and JSON-RPC

[

4

](https://stackoverflow.com/q/56514352?rq=1 “Vote score (upvotes - downvotes)”)i get an error: “MetaMask - RPC Error: Error: Error: [ethjs-rpc] rpc error with payload”

[

0

](https://stackoverflow.com/q/62801265?rq=1 “Vote score (upvotes - downvotes)”)Metamask returns RPC Error: Error: [ethjs-rpc] rpc error with payload {“id”:5715960965837,”jsonrpc”:”2.0”,”params”:

[

0

](https://stackoverflow.com/q/62866404?rq=1 “Vote score (upvotes - downvotes)”)Testing Server for JSON-RPC

[

0

](https://stackoverflow.com/q/65217985?rq=1 “Vote score (upvotes - downvotes)”)Error: Invalid JSON RPC response: undefined

[

0

](https://stackoverflow.com/q/66924776?rq=1 “Vote score (upvotes - downvotes)”)MetaMask RPC error? ‘MetaMask - RPC Error: Internal JSON-RPC error.’

[

0

](https://stackoverflow.com/q/68760210?rq=1 “Vote score (upvotes - downvotes)”)Returned values aren’t valid, did it run Out of Gas? web3 1.5.0 and sol-0.5.15

[

0

](https://stackoverflow.com/q/68812343?rq=1 “Vote score (upvotes - downvotes)”)Metamask Error: Internal JSON-RPC error. while confirming on metamask mobile

Hot Network Questions

Question feed

Subscribe to RSS

Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Stack Overflow

Products

Company

[Stack Exchange

Network](https://stackexchange.com)

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.11.26.40833
https://stackoverflow.com/questions/69659558/error-hh604-error-running-json-rpc-server-error0308010cdigital-envelope-rout