canopy icon indicating copy to clipboard operation
canopy copied to clipboard

[BUG] Transactions fail silently without verbose error messaging

Open TheFeloniousMonk opened this issue 1 year ago • 1 comments

Describe the bug

Update: The reported issue was a JSON structure issue, but there is no error reporting to indicate that. Same steps to reproduce below.

Clicking "Submit" on the Submit Proposal section of the Governance view using the default JSON generates a 400 bad request error referencing a CORS issue. The accordion does not close and the toast does not fire. The following logs are generated:

Console Log Response {type: 'cors', url: 'http://localhost:50002/v1/tx', redirected: false, status: 400, ok: false, …} body: (...) bodyUsed: false headers: Headers {} ok: false redirected: false status: 400 statusText: "Bad Request" type: "cors" url: "http://localhost:50002/v1/tx" [[Prototype]]: Response

Request Payload {type: "change_parameter",…} fee: 10000 memo: "test" msg: {parameter_space: "cons", parameter_key: "block_size", parameter_value: 1000, start_height: 1,…} end_height: 100 parameter_key: "block_size" parameter_space: "cons" parameter_value: 1000 signer: "1fe1e32edc41d688..." start_height: 1 signature: {public_key: "a88b9c0c7b77e7f8ac...", signature: "8f6d016d04e350..."} public_key: "a88b9c0c7b77e7f8ac..." signature: "8f6d016d04e350..." type: "change_parameter"

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to Governance view and open the "Submit Proposal" accordion
  2. Optional: Set a memo value
  3. Click submit
  4. See error

Expected behavior

On submit, the accordion should close and the transaction should be sent.

Screenshots

Image

Environment

  • Browser: Chrome v. 123.0.6312.106

Additional context

n/a

Required Tags

  • Priority: Low
  • Module: Governance

TheFeloniousMonk avatar Feb 15 '25 14:02 TheFeloniousMonk

New explorer implementation obsolesces this

andrewnguyen22 avatar Dec 06 '25 21:12 andrewnguyen22