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: https://docs.openzeppelin.com/learn/connecting-to-public-test-networks

1 Like

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

failed to get chainId, falling back on net_version...
An unexpected error occurred:

ProviderError: Must be authenticated!
at HttpProvider.request (E:\medichain-nextjs\medichain-hardhat\node_modules\hardhat\src\internal\core\providers\http.ts:78:19)
at AutomaticSenderProvider.request (E:\medichain-nextjs\medichain-hardhat\node_modules\hardhat\src\internal\core\providers\accounts.ts:351:34)
at AutomaticGasProvider.request (E:\medichain-nextjs\medichain-hardhat\node_modules\hardhat\src\internal\core\providers\gas-providers.ts:136:34)
at AutomaticGasPriceProvider.request (E:\medichain-nextjs\medichain-hardhat\node_modules\hardhat\src\internal\core\providers\gas-providers.ts:153:36)
at ChainIdValidatorProvider._getChainIdFromEthNetVersion (E:\medichain-nextjs\medichain-hardhat\node_modules\hardhat\src\internal\core\providers\chainId.ts:33:45)
at ChainIdValidatorProvider._getChainId (E:\medichain-nextjs\medichain-hardhat\node_modules\hardhat\src\internal\core\providers\chainId.ts:17:36)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ChainIdValidatorProvider.request (E:\medichain-nextjs\medichain-hardhat\node_modules\hardhat\src\internal\core\providers\chainId.ts:55:29)
at DeploymentsManager.getChainId (E:\medichain-nextjs\medichain-hardhat\node_modules\hardhat-deploy\src\DeploymentsManager.ts:443:23)
at DeploymentsManager.loadDeployments (E:\medichain-nextjs\medichain-hardhat\node_modules\hardhat-deploy\src\DeploymentsManager.ts:619:17)
error Command failed with exit code 1.
I am getting this error