Skip to content

Deploying to Rinkeby via Hardhat Error: Invalid value undefined for HardhatConfig.networks.rinkeby.url #113

Answered by Magofoco
Equious asked this question in Q&A
Discussion options

You must be logged in to vote

I had the same error.
The first thing I did was to console.log(process.env.RINKEBY_RPC_URL) to see if we were reading it correctly. It returned undefined so it was not reading it correctly, but the other .env variables were read correctly.

Change RINKEBY_RPC_URL to RINKEBY_URL everywhere (code and .env) and it should work.

Replies: 3 comments 24 replies

Comment options

You must be logged in to vote
15 replies
@Equious
Comment options

@alymurtazamemon
Comment options

@Equious
Comment options

@PatrickAlphaC
Comment options

@alymurtazamemon
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@Equious
Comment options

@PatrickAlphaC
Comment options

@Frostbite22
Comment options

@0xrishavsharma
Comment options

@RobiulAwalSabbib
Comment options

Answer selected by Equious
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants