-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HttpProviderError problem #3209
Comments
This issue is also being tracked on Linear. We use Linear to manage our development process, but we keep the conversations on Github. LINEAR-ID: e32f998c-e91f-4feb-b7e8-2f38ee7002d3 |
After researching the topic, I found out that A solution was provided by parceljs developers for their environment reader (see the PR linked in parcel-bundler/parcel#2191 for reference). However, no solution for Could you kindly retest by using the code snippet at the end of the current message and share the outcome? networks: {
avaxchain: {
url: process.env.API_URL,
accounts: [`0x${process.env.PRIVATE_KEY}`],
},
}, |
Do I have to add but that also gives error
|
Could you kindly share us an |
sure
|
Could you kindly remove the
|
this error occurs |
I think that u didn't understand what @sisco0 is talking about.
That means that you can't do this: You have to access the value directly. So your example should look something like this:
|
Thank you for the info @LuisUrrutia , used your code but the same error occurs |
For the record, this is only true if you are using certain bundle tools. That's not the case for Hardhat; destructuring @Gizmolala your problem is likely an error in the node, but we have a bug were we are swallowing the proper error message returned by it, which will make it hard for you to debug this. A super hackish thing you can try is this:
This should log the actual error you are getting. I know this is a shitty workaround, and properly fixing this is high on our priority list. |
Same error |
@Gizmolala sorry, I wasn't clear, I meant that you should see something that starts with |
You mean add this line |
Yes |
did that
|
@Gizmolala Try adding gasPrice manually like this
|
From my understanding I thoughts that why we have these settings, but please correct me if I wrong in terms of these setting estimating the gas price as well:
|
Closing this in favor of #1222, because I think that the main issue here is that we are not showing the error message returned by the node. |
So I am having a problem deploying the contract on the avalanche test net, whenever I try to-->
npx hardhat run scripts/deploy.js --network avaxchain
it shows an error of --->
error: ProviderError: HttpProviderError
Any suggestion?
The text was updated successfully, but these errors were encountered: