Skip to content
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

context deadline exceeded #258

Open
devedse opened this issue Apr 16, 2022 · 6 comments
Open

context deadline exceeded #258

devedse opened this issue Apr 16, 2022 · 6 comments

Comments

@devedse
Copy link
Contributor

devedse commented Apr 16, 2022

Hello, I'm currently running into an issue where it seems that deploying a contract takes longer then the time allowed to wait for it:

COMMANDOUTPUT=$(web3 -f json contract deploy TheContract.bin)
ERROR: Cannot get the receipt: context deadline exceeded

Is there a way to increase the max timeout?

Next to that I also haven't been able to find a way to increase the gas-price when deploying a SmartContract. Is there a way to do that?

@devedse
Copy link
Contributor Author

devedse commented Apr 17, 2022

I created a PR that (hopefully) allows providing a higher gas price:
#259

It doesn't solve the timeout issue though.

@treeder
Copy link
Contributor

treeder commented Apr 17, 2022

For timeouts, probably need to another flag and use it for the WithTimeout calls: https://github.com/gochain/web3/search?q=WithTimeout

@devedse
Copy link
Contributor Author

devedse commented Apr 18, 2022

If that would solve the timeouts it would be very nice if that could be added. Do you have time to implement this?

@devedse
Copy link
Contributor Author

devedse commented Apr 18, 2022

I did just try the new release (with my PR) however now I'm not even seeing the transaction pop up in Etherscan at all:

web3 -f json contract deploy --gas-price-gwei 5 TheContract.bin

Any idea what I could be doing wrong?

Edit:
is there a way to display the transactionId when we get this error:

ERROR: Cannot get the receipt: context deadline exceeded

@devedse
Copy link
Contributor Author

devedse commented Apr 18, 2022

I've added a PR with a start on this:
#261

@devedse
Copy link
Contributor Author

devedse commented Apr 18, 2022

Ok I also added a --timout flag. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants