Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

UI + PoA: Sending tx fails #4378

Closed
chevdor opened this issue Feb 1, 2017 · 6 comments
Closed

UI + PoA: Sending tx fails #4378

chevdor opened this issue Feb 1, 2017 · 6 comments
Assignees
Labels
F2-bug 🐞 The client fails to follow expected behavior.

Comments

@chevdor
Copy link

chevdor commented Feb 1, 2017

The following issue occurs in builds from the latest master.
The issue occurs when using PoA in a similar way than described at https://github.com/ethcore/parity/wiki/Demo-PoA-tutorial

Once the PoA chains runs, sending tx through RPC works fine. When doing so, the parity UI shows the signer dialog and prompt the user to enter his account password, then the tx goes to the blockchain => all good.

Making a tx (simple ETH transfer) from the UI however fails. It remains stuck with the following dialog forever:

screen shot 2017-02-01 at 10 49 47

@keorn
Copy link

keorn commented Feb 1, 2017

The UI needs a wider set of RPC apis enabled than the one in tutorial, I will add a note. Try running without --jsonrpc-apis or adding all default ones.

@tomusdrw
Copy link
Collaborator

tomusdrw commented Feb 1, 2017

UI is using Secure Signer interface which has all APIs exposed, maybe it's just not using the correct one? (iirc UI is using parity_postTransaction instead of eth_sendTransaction, could that be causing any issues?)

@chevdor
Copy link
Author

chevdor commented Feb 1, 2017

@keorn I am already using
apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces", "rpc", "parity_accounts"]
so I don´t think this is the issue.

@keorn
Copy link

keorn commented Feb 1, 2017

Yep, just had a similar issue when writing the tutorial which afair was caused by this, will have a look what might be the issue this time.

@keorn keorn added M6-rpcapi 📣 RPC API. Z0-unconfirmed 🤔 Issue might be valid, but it’s not yet known. labels Feb 1, 2017
@chevdor
Copy link
Author

chevdor commented Feb 1, 2017

@keorn great tuto btw.

@keorn keorn added F2-bug 🐞 The client fails to follow expected behavior. M6-rpcapi 📣 RPC API. and removed M6-rpcapi 📣 RPC API. Z0-unconfirmed 🤔 Issue might be valid, but it’s not yet known. labels Feb 1, 2017
@keorn
Copy link

keorn commented Feb 1, 2017

@tomusdrw When I run with rpc=trace

2017-02-01 03:40:00   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":232}.
2017-02-01 03:40:00   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":\"0x0\",\"id\":232}").
2017-02-01 03:40:00   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":233}.
2017-02-01 03:40:00   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":false,\"id\":233}").
2017-02-01 03:40:00   TRACE rpc  Request: {"jsonrpc":"2.0","method":"signer_requestsToConfirm","params":[],"id":234}.
2017-02-01 03:40:00   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":[],\"id\":234}").
2017-02-01 03:40:01   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":235}.
2017-02-01 03:40:01   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":\"0x0\",\"id\":235}").
2017-02-01 03:40:01   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":236}.
2017-02-01 03:40:01   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":false,\"id\":236}").
2017-02-01 03:40:02   TRACE rpc  Request: {"jsonrpc":"2.0","method":"signer_requestsToConfirm","params":[],"id":237}.
2017-02-01 03:40:02   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":[],\"id\":237}").
2017-02-01 03:40:02   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":238}.
2017-02-01 03:40:02   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":\"0x0\",\"id\":238}").
2017-02-01 03:40:02   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":239}.
2017-02-01 03:40:02   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":false,\"id\":239}").
2017-02-01 03:40:03   TRACE rpc  Request: {"jsonrpc":"2.0","method":"signer_requestsToConfirm","params":[],"id":240}.
2017-02-01 03:40:03   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":[],\"id\":240}").
2017-02-01 03:40:03   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":241}.
2017-02-01 03:40:03   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":\"0x0\",\"id\":241}").
2017-02-01 03:40:03   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":242}.
2017-02-01 03:40:03   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":false,\"id\":242}").
2017-02-01 03:40:04   TRACE rpc  Request: {"jsonrpc":"2.0","method":"signer_requestsToConfirm","params":[],"id":243}.
2017-02-01 03:40:04   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":[],\"id\":243}").
2017-02-01 03:40:04   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":244}.
2017-02-01 03:40:04   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":245}.
2017-02-01 03:40:04   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":false,\"id\":245}").
2017-02-01 03:40:04   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":\"0x0\",\"id\":244}").
2017-02-01 03:40:05   TRACE rpc  Request: {"jsonrpc":"2.0","method":"signer_requestsToConfirm","params":[],"id":246}.
2017-02-01 03:40:05   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":[],\"id\":246}").
2017-02-01 03:40:05   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":247}.
2017-02-01 03:40:05   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":false,\"id\":247}").
2017-02-01 03:40:05   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":248}.
2017-02-01 03:40:05   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":\"0x0\",\"id\":248}").
2017-02-01 03:40:06   TRACE rpc  Request: {"jsonrpc":"2.0","method":"signer_requestsToConfirm","params":[],"id":249}.
2017-02-01 03:40:06   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":[],\"id\":249}").
2017-02-01 03:40:06   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":250}.
2017-02-01 03:40:06   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":false,\"id\":250}").
2017-02-01 03:40:06   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":251}.
2017-02-01 03:40:06   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":\"0x0\",\"id\":251}").

Dont see any tx posting after clicking "SEND".

Can be replicated by running parity --chain demo-spec.json with this file. Account with balance can be created with phrase "user". This will not seal a transaction but should be able to only submit it fine (direct send RPC works fine).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F2-bug 🐞 The client fails to follow expected behavior.
Projects
None yet
Development

No branches or pull requests

3 participants