8000 Uncaught execption in JSON-RPC with Geth · Issue #105 · airalab/hs-web3 · GitHub
[go: up one dir, main page]

Skip to content

Uncaught execption in JSON-RPC with Geth #105

Open

Description

@o1lo01ol1o
tmp' :: IO ()
tmp' = do 
  r <- runWeb3 foo
  case r of 
    Left errr -> putStrLn "an error"
    Right a -> putStrLn "ok"

In the event of insufficient funds, the above will throw an uncaught exception:

*** Exception: CallException JSON-RPC error -32000: err: insufficient funds for transfer (supplied gas 4010499). Data: Nothing

This is using geth 1.9.24-stable on Ropsten:

geth --http --rpc --ropsten

Activity

  1. akru commented on May 4, 2021

    @akru
    Member

    @o1lo01ol1o Thank you for report Tim, expected behaviour is Left "error message" right?

  2. o1lo01ol1o commented on May 4, 2021

    @o1lo01ol1o
    ContributorAuthor

    Yes, I would expect to see geth's error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0