Comments (8)
yes, it is
from hardhat.
Hey @kuco23, kick question, is that network Avalanche's C-chain?
from hardhat.
Hi, I faced the same issue using polygon mainnet :
With this configuration :
hardhat: {
chainId: 137,
forking: {
url: "https://polygon.llamarpc.com",
blockNumber: 54461490,
},
},
Error: The Http server returned error status code: HTTP status client error (400 Bad Request) for url (https://polygon.llamarpc.com/)
And with a infura.io
node, I got the following error :
Error: The Http server returned error status code: HTTP status client error (429 Too Many Requests) for url (https://polygon-mainnet.infura.io/v3/xxx)
from hardhat.
Getting the same issue with shibarium.
Rolled back to 2.20.0 and it works again
from hardhat.
I have an internal Ethereum network that I fork by targeting a Geth node running remotely (used to work with V2.20.1).
I get the same issue for it with V2.21.0 (forking public networks with Alchemy endpoints works though).
Here are the logs:
hardhat:core:hre Running task node +5ms
hardhat:core:hre Running node's super +0ms
hardhat:core:hre Running task node:get-provider +0ms
hardhat:core:hre Running node:get-provider's super +0ms
hardhat:core:hre Creating provider for network hardhat +0ms
Error HH604: Error running JSON-RPC server: The Http server returned error status code: HTTP status client error (415 Unsupported Media Type) for url (http://geth-testnet:8545/)
HardhatError: HH604: Error running JSON-RPC server: The Http server returned error status code: HTTP status client error (415 Unsupported Media Type) for url (http://geth-testnet:8545/)
at SimpleTaskDefinition.action (<REDACTED>/solidity/node_modules/hardhat/src/builtin-tasks/node.ts:372:17)
at async Environment._runTaskDefinition (<REDACTED>/solidity/node_modules/hardhat/src/internal/core/runtime-environment.ts:359:14)
at async OverriddenTaskDefinition._action (<REDACTED>/solidity/node_modules/hardhat-deploy/src/index.ts:769:5)
at async Environment._runTaskDefinition (<REDACTED>/solidity/node_modules/hardhat/src/internal/core/runtime-environment.ts:359:14)
at async Environment.run (<REDACTED>/solidity/node_modules/hardhat/src/internal/core/runtime-environment.ts:192:14)
at async main (<REDACTED>/solidity/node_modules/hardhat/src/internal/cli/cli.ts:323:7)
Caused by: Error: The Http server returned error status code: HTTP status client error (415 Unsupported Media Type) for url (http://geth-testnet:8545/)
Child process exited with code 1
I have an Ethereum RPC reverse proxy I use for debugging and it seems that "Content-Type" http header for requests is not defined. Setting it to "application/json" in the reverse proxy makes everything work.
from hardhat.
Thank you all for the detailed bug reports! 😃
A fix has been released in https://github.com/NomicFoundation/hardhat/releases/tag/hardhat%402.22.1
Please let us know if you have any further issues.
from hardhat.
Related Issues (20)
- Support multiple test runners as part of HHv3
- Boilerplate error: the transaction is executed but errors are printed in the HH node HOT 2
- Can you set pauses in test script? HOT 2
- hardhat chai matchers: `emit(...).withArgs` does not properly work with BigInt `closeTo` in the callback HOT 5
- Cannot deploy NickFactory: invalid opcode error HOT 1
- Forking config seems not working HOT 1
- npx hardhat compile never runs the optimizer. HOT 1
- Allow environment extension before parsing cli arguments
- Out of memory when trying to install hardhat v2.21.0 HOT 5
- ProviderError: Unsupported type 126 HOT 3
- looking for gitlab CI-CD image HOT 1
- An etherscan endpoint could not be found for this network. ChainID: 11155111. The selected network is sepolia. HOT 3
- Overriding a storage slot of a fork does not work anymore [duplicate] HOT 1
- Overriding a storage slot of a fork does not work anymore HOT 1
- Switch the default hardfork to cancun HOT 2
- Versioning problems. HOT 2
- Multiple transactions found in block HOT 1
- Run a script using the hardhat network, makes the script to never end if the provider and some promise was used from =>v2.21.0 HOT 3
- Accounts Array Truncation to 20 Signers HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hardhat.