-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Private transaction call failing #10063
Comments
I must add that after the GET call the SS1 node can't be reached anymore by other secret store nodes. |
Do you have access to logs from the SS1 node? |
This is the output from the SS1 node
|
I would check if you have any networking restrictions (ie, a firewall, security group, etc) on your node, also, it looks like it was only running for two minutes before being killed. |
I've no restriction, the previous tutorial worked fine. |
After the call the other secret store nodes logs the following error
Then I have to restart the SS1 node to get rid from the error |
Could you run with |
Ok, here is the new output
|
I was building with master as requested by tutorial. Today I will try building with different branches... |
I've built using beta brach and now after the call I get this response {"jsonrpc":"2.0","error":{"code":-32024,"message":"Private transactions call failed.","data":"Error(Encrypt("Forbidden"), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"},"id":1} |
Ok, now that I can read the error I've found the problem. I've configured the ssx.toml with the wrong permissioning contract address (it wasn't a permissioning contract at all). Thank you for your support. |
The beta version I'm using is I think this could be still an open issue for the 2.3 version because the curl called using the master branch hangs instead of returning an error. |
@joshua-mir most probably the described problem was fixed in #9979 But in order to make sure, we need to trace it with logging target privatetx=trace enabled |
I'm following the Private Transactions tutorial and everything worked fine until part 3.
Here, when calling
private_composeDeploymentTransaction
the curl get stuck and hangs without timeout.Here is the sequence of curls as per tutorial
`curl --data '{"method":"parity_composeTransaction","params":[{"from":"0xf587f027cb03b10d699f33a153b9e746bff11644", "data":"0x608060405234801561001057600080fd5b5060e38061001f6000396000f3fe6080604052600436106043576000357c0100000000000000000000000000000000000000000000000000000000900480630c55699c146048578063bc64b76d146070575b600080fd5b348015605357600080fd5b50605a60a7565b6040518082815260200191505060405180910390f35b348015607b57600080fd5b5060a560048036036020811015609057600080fd5b810190808035906020019092919050505060ad565b005b60005481565b806000819055505056fea165627a7a7230582045049e9cda70e48aa7e46b780070b1e2f3e28ccadb9e592691472e485845ce2b0029"}],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
curl --data '{"method":"personal_signTransaction","params":[{"condition":null,"data":"0x608060405234801561001057600080fd5b5060e38061001f6000396000f3fe6080604052600436106043576000357c0100000000000000000000000000000000000000000000000000000000900480630c55699c146048578063bc64b76d146070575b600080fd5b348015605357600080fd5b50605a60a7565b6040518082815260200191505060405180910390f35b348015607b57600080fd5b5060a560048036036020811015609057600080fd5b810190808035906020019092919050505060ad565b005b60005481565b806000819055505056fea165627a7a7230582045049e9cda70e48aa7e46b780070b1e2f3e28ccadb9e592691472e485845ce2b0029","from":"0xf587f027cb03b10d699f33a153b9e746bff11644","gas":"0x186a00","gasPrice":"0x0","nonce":"0x1","to":null,"value":"0x0"},"alicepwd"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
curl --data '{"method":"private_composeDeploymentTransaction","params":["latest", "0xf90150018083186a008080b90102608060405234801561001057600080fd5b5060e38061001f6000396000f3fe6080604052600436106043576000357c0100000000000000000000000000000000000000000000000000000000900480630c55699c146048578063bc64b76d146070575b600080fd5b348015605357600080fd5b50605a60a7565b6040518082815260200191505060405180910390f35b348015607b57600080fd5b5060a560048036036020811015609057600080fd5b810190808035906020019092919050505060ad565b005b60005481565b806000819055505056fea165627a7a7230582045049e9cda70e48aa7e46b780070b1e2f3e28ccadb9e592691472e485845ce2b002945a05f4d4cad8818f87caade0d9f02325abcd0beb28896f6b3e3043af0456a7d1ea9a058f3da474c05644d43d7a816ce282a2264bcf270ddd1a89f9cbd3ddd55a5a529", ["0xece0d92767aae90921e5299610abc101b75e63cb"], "0x0"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545`
Sniffing the HTTP traffic I noticed that Alice node do a GET call to the SS1 secret store (I think to get the encryption key) and receive no response, so it's the SS1 node that get stuck (maybe it's a problem with a child process?)
The call from Alice to SS1 is the following
GET /000000000000000000000000310bf0bf58b40a2f1f9efc320c56813236e6f6c8/76ee8d3b7cf11e7d71044b774b93812ed01af9728ca69a2fe5b0f3d020545ca075f0f90d6249c361e87bf752ffef66bf933494a1b88308904020b9df4510192d01
The text was updated successfully, but these errors were encountered: