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

Bad error handling in TraceCall #56

Open
maxandron opened this issue Dec 31, 2024 · 0 comments
Open

Bad error handling in TraceCall #56

maxandron opened this issue Dec 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@maxandron
Copy link

Steps to Reproduce

  1. Enable trace endpoint with --rpc-http-apis=TRACE
  2. Make a call to trace_call without specifying gas in the transaction

Example:

curl http://127.0.0.1:8545 \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"trace_call","params":[{"from": "0x74B7da0c6D1C063aB31c09A1D899AbbAFbA2612b", "to":"0xeA089829BCfA11BF536F5f5DaBe2Ac15bdb83dB5", "data":"0xa9cc4718"}, ["trace"], "pending"],"id":1,"jsonrpc":"2.0"}'

Expected behavior:
Receive a properly formatted response with any errors that occurred

Actual behavior:
Receiving "Internal Error" as the response

{"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"Internal error"}}

In the logs I see the actual error was gasPrice is less than the current BaseFee

linea-besu-advanced-mainnet-node-1  | 2024-12-31 08:51:13.325+00:00 | vert.x-worker-thread-14 | ERROR | TraceCall | Invalid simulator result TransactionSimulatorResult[transaction=MessageCall{type=EIP1559, nonce=354, maxPriorityFeePerGas=0 wei, maxFeePerGas=0 wei, gasLimit=61000000, to=0xea089829bcfa11bf536f5f5dabe2ac15bdb83db5, value=0x0000000000000000000000000000000000000000000000000000000000000000, sig=Signature{r=57896044618658097711785492504343953926418782139537452191302581570759080747168, s=57896044618658097711785492504343953926418782139537452191302581570759080747168, recId=0}, chainId=59144, payload=0xa9cc4718}, result=TransactionProcessingResult{status=INVALID, estimateGasUsedByTransaction=-1, gasRemaining=-1, logs=[], output=0x, validationResult=ValidationResult{invalidReason=Optional[GAS_PRICE_BELOW_CURRENT_BASE_FEE], errorMessage=Optional[gasPrice is less than the current BaseFee]}, revertReason=Optional.empty}]

Thank you and let me know if I can help.

Frequency: 100%

Logs

Provided above. Let me know if anything else is needed

Versions (Add all that apply)

Running besu in docker with latest tag

  • Software version: [besu --version]
besu/v24.10-delivery34/linux-x86_64/openjdk-java-21
besu-shomei-plugin/v0.3.1
besu-shomei-plugin/v0.3.1
besu-sequencer-plugins/v0.1.4-test34
besu-sequencer-plugins/v0.1.4-test34
besu-sequencer-plugins/v0.1.4-test34
besu-sequencer-plugins/v0.1.4-test34
besu-sequencer-plugins/v0.1.4-test34
besu-sequencer-plugins/v0.1.4-test34
besu-sequencer-plugins/v0.1.4-test34
besu-sequencer-plugins/v0.1.4-test34
besu-sequencer-plugins/v0.1.4-test34
finalized-tag-updater/v0.0.2
  • Java version: [java -version]
openjdk 21.0.4 2024-07-16
  • OS Name & Version: [cat /etc/*release]
root@a61836e1ccc8:/opt/besu# cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
  • Kernel Version: [uname -a]
Linux a61836e1ccc8 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • Virtual Machine software & version: [vmware -v]
    N/A

  • Docker Version: [docker version]: 27.3.1

@maxandron maxandron added the bug Something isn't working label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant