Metamask saying Could not fetch chain ID. Is your RPC URL correct?

i am working through the full stack web3 development by nader the tutorial. I want to configure the network through metamask but it is not fetching the id that was provided by the tutorial.