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

Server returned error: 0: Timeout #99

Closed
oggy95 opened this issue Dec 11, 2020 · 6 comments
Closed

Server returned error: 0: Timeout #99

oggy95 opened this issue Dec 11, 2020 · 6 comments

Comments

@oggy95
Copy link

oggy95 commented Dec 11, 2020

Hello.

After updating to version 2.1.0 we getting an errors on withdrawing theta and tfuel.
While sending some theta or tfuel via api (thetacli.Send, async=false), request executes very long and sometimes we getting this error:

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32000,
    "message": "Server returned error: 0: Timeout"
  }
}

But transaction successfully pushed to blockchain.
In logs theta:
[2020-12-11 09:09:42] ERROR [rpc] HTTP request timed out: requestBody={"{\"jsonrpc\":\"2.0\",\"method\":\"theta.BroadcastRawTransaction\",\"params\":[{\"tx_bytes\":\"SOME_TX_BYTES\"}],\"id\":0}"}

Request body:

{
	"jsonrpc": "2.0",
	"method": "thetacli.Send",
	"params": {
		"chain_id": "mainnet",
		"from": ADDRESS_FROM,
		"to": ADDRESS_TO,
		"thetawei": "0",
		"tfuelwei": SOME_TFUEL,
		"fee":"1000000000000",
		"sequence": "SOME_SEQUENCE,
		"async": false
	},
	"id": 1
}

Switch to async transactions we can't.

@jieyilong
Copy link
Member

Thanks for reporting the issue. I assume you're running the Theta software on Linux? Are you running the Theta software with the downloaded binaries or compiling from the source code?

@oggy95
Copy link
Author

oggy95 commented Dec 14, 2020

Yes, Ubuntu 18.04.
Compiling from the source code.

@jieyilong
Copy link
Member

jieyilong commented Dec 14, 2020

Thanks. We have just committed a fix for this issue a few hours ago to the master branch: 3cdaba1

Could you pull the latest code from the master branch and see if you still see the issue? We'll merge the changes to the release branch later after more thorough testing.

@oggy95
Copy link
Author

oggy95 commented Dec 15, 2020

Some transactions proceed faster, but errors still appear on some of them.

@jieyilong
Copy link
Member

jieyilong commented Dec 26, 2020

We rolled out a fix to the validators a few days ago. Please let us know if you still see the errors. Thanks!

@oggy95
Copy link
Author

oggy95 commented Jan 4, 2021

No, error still appears.
We switched to async tx, therefore, the problem is not relevant at the moment.

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