ProviderError: Must be authenticated! deploying to Rinkeby

"Error occuring while deploying upgradable contract in Rinkeby network using hardhat plugin. ."and I followed this steps to deploy the contract..

herewith i am attaching my error msg and screenshot.

Error message:

 ProviderError: Must be authenticated!
    at HttpProvider.request (D:\Testusinghardhat\node_modules\hardhat\src\internal\core\providers\http.ts:45:19)
    at HDWalletProvider.request (D:\Testusinghardhat\node_modules\hardhat\src\internal\core\providers\accounts.ts:131:34)
    at GanacheGasMultiplierProvider._isGanache (D:\Testusinghardhat\node_modules\hardhat\src\internal\core\providers\gas-providers.ts:175:30)
    at GanacheGasMultiplierProvider.request (D:\Testusinghardhat\node_modules\hardhat\src\internal\core\providers\gas-providers.ts:164:23) 
    at EthersProviderWrapper.send (D:\Testusinghardhat\node_modules\@nomiclabs\hardhat-ethers\src\ethers-provider-wrapper.ts:13:20)        
    at Object.getSigners (D:\Testusinghardhat\node_modules\@nomiclabs\hardhat-ethers\src\helpers.ts:35:20)
    at getContractFactoryByAbiAndBytecode (D:\Testusinghardhat\node_modules\@nomiclabs\hardhat-ethers\src\helpers.ts:242:21)
    at getContractFactory (D:\Testusinghardhat\node_modules\@nomiclabs\hardhat-ethers\src\helpers.ts:69:29)
    at main (D:\Testusinghardhat\scripts\deploy.js:4:21) 

Can anyone helpme to solve this issue.

1 Like

Hi @Prabhakaran,

How are you connecting to Rinkeby?

Are you able to share your hardhat.config.js? :warning: please don’t include any secrets such as your mnemonic or API keys.

If you haven’t already, I suggest looking at the Learn guide:


Thanks @abcoathup now its working … Instead of ProjectId of Infura i used alchemyApiKey so that was the mistake .now i changed to InfuraId now its working.

1 Like

Hi @Prabhakaran,

Glad to hear that you were able to resolve.

1 Like

A post was split to a new topic: Missing argument in constructor