Typically, this means your environment variables are not set correctly, and it looks like in this case it's your WEB3_INFURA_PROJECT_ID
.
Solution 1
You can fix it by setting the variable in your .env
file and adding dotenv: .env
to your brownie-config.yaml
.
brownie-config.yaml
:
dotenv: .env
.env
:
export WEB3_INFURA_PROJECT_ID=YOUR_PROJECT_ID_HERE
Remember to save these files.
Additionally, you should be on at least brownie version v1.14.6. You can find out what version you're on with:
brownie --version
Solution 2
If you know how to set environment variables you might want to check if you're setting them correctly. If you're on a linux-like environment, you can do:
source .env
To set them.