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

Uncaught execption in JSON-RPC with Geth #105

Open
o1lo01ol1o opened this issue Jan 21, 2021 · 2 comments
Open

Uncaught execption in JSON-RPC with Geth #105

o1lo01ol1o opened this issue Jan 21, 2021 · 2 comments
Labels

Comments

@o1lo01ol1o
Copy link
Contributor

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
@akru akru added the bug label May 4, 2021
@akru
Copy link
Member

akru commented May 4, 2021

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

@o1lo01ol1o
Copy link
Contributor Author

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants