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

net-service information reading error for GraphQL #7513

Open
ITStarMan100 opened this issue Aug 23, 2024 · 3 comments · May be fixed by #7580
Open

net-service information reading error for GraphQL #7513

ITStarMan100 opened this issue Aug 23, 2024 · 3 comments · May be fixed by #7580
Assignees
Labels
good first issue Good for newcomers snack Smaller coding task - less than a day for an experienced dev

Comments

@ITStarMan100
Copy link
Contributor

Description
Error to read host information about Graphql HTTP using curl "net_services" option.

Steps to Reproduce (Bug)

  1. Run the BESU node as follows:

/bin/besu
--network=holesky
--p2p-port=30303
--rpc-http-port=8545
--rpc-http-enabled=true
--rpc-http-cors-origins="*"
--engine-rpc-port=8551
--max-peers=25
--rpc-http-enabled=true
--sync-mode=SNAP
--logging=INFO
--data-storage-format=BONSAI
--Xbonsai-limit-trie-logs-enabled=true
--data-path="/var/lib/besu"
--graphql-http-enabled=true
--graphql-http-host="0.0.0.0"
--graphql-http-port=8549
--engine-jwt-secret=/secrets/jwtsecret

  1. Check the port using "netstat -tulnp".
    Port for Graphql http to listen on 8549

tcp6 0 0 :::8549 :::* LISTEN 2001774/java
tcp6 0 0 :::30303 :::* LISTEN 2001774/java
tcp6 0 0 127.0.0.1:8545 :::* LISTEN 2001774/java
tcp6 0 0 127.0.0.1:8551 :::* LISTEN 2001774/java
udp6 0 0 :::30303 :::* 2001774/java
udp6 0 0 :::48848 :::* 2001774/java

  1. Run Net-Services command.

curl --location 'http://localhost:8545'
--data '{
"jsonrpc": "2.0",
"method": "net_services",
"params": [],
"id": 1
}'

Actual behavior: Graphql Host information is not present.
{"jsonrpc":"2.0","id":1,"result":{"jsonrpc":{"host":"127.0.0.1","port":"8545"},"p2p":{"host":"127.0.0.1","port":"30303"}}}

Expected behavior:
{"jsonrpc":"2.0","id":1,"result":{"jsonrpc":{"host":"127.0.0.1","port":"8545"},"p2p":{"host":"127.0.0.1","port":"30303"}, "graphql":{"host":"127.0.0.1","port":"8549"}}}

Frequency: 100%

Versions (Add all that apply)
Software version: 24.5.1
Java version: openjdk-java-17
OS Name & Version: Ubuntu 22, linux-x86_64

@macfarla macfarla added good first issue Good for newcomers snack Smaller coding task - less than a day for an experienced dev labels Aug 26, 2024
@pr9t
Copy link
Contributor

pr9t commented Aug 27, 2024

Hey, I am interested in this issue. Could you please assign it to me and Lavender

@ITStarMan100
Copy link
Contributor Author

ITStarMan100 commented Aug 27, 2024 via email

@ITStarMan100
Copy link
Contributor Author

I have completed the code update for the above fix

Who should I contact after submitting a PR request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers snack Smaller coding task - less than a day for an experienced dev
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants