Giter Club home page Giter Club logo

Comments (8)

kuco23 avatar kuco23 commented on June 10, 2024 1

yes, it is

from hardhat.

fvictorio avatar fvictorio commented on June 10, 2024

Hey @kuco23, kick question, is that network Avalanche's C-chain?

from hardhat.

FournyP avatar FournyP commented on June 10, 2024

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.

Doc-Pixel avatar Doc-Pixel commented on June 10, 2024

Getting the same issue with shibarium.

Rolled back to 2.20.0 and it works again

from hardhat.

fullkomnun avatar fullkomnun commented on June 10, 2024

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.

Wodann avatar Wodann commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.