-
Notifications
You must be signed in to change notification settings - Fork 820
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
Receiving different responses targeting a host name locally or remotely #2688
Comments
Did you set up besu to allow the host name? What parameters did you use running Besu? |
|
added |
Is there workaround about the issue? https is preferred in production environment and, without domain only http can be used. |
Still no idea what the problem is from your steps. Please provide a detailed log. Do you reproduce with a curl command? |
Here is a message posted on Besu chat:
|
Here is the link of discussion on ethers GitHub about domain name vs IP address in provider. No error in bootnode log was found when submitting with a domain name. |
ssh into the boot node to run the curl works:
However if do a curl on a remote PC, then there is an error. Is that related to configuration below?
Here is the config.toml on boot node:
|
So you’re not receiving nothing. You’re receiving a html page. please do this for me: compare the output of |
remote: host mydomain.top on boot node: |
The boot node is behind nginx reverse proxy server on port 80. Any http request to http://mydomain.top or http://IP address will be forwarded by proxy to port 8485, |
Description
This error happened in React Native 0.64.2 app, with ethersjs 5.4. The app used to use IP address to connect to boot node. After the boot node was assigned a domain name, the domain name is used to connect to the Besu network. Then there is an no response error when trying to read the blockNumber. Here is the code:
The error is
LOG Connection mainchain error [Error: missing response (requestBody="{\"method\":\"eth_blockNumber\",\"params\":[],\"id\":42,\"jsonrpc\":\"2.0\"}", requestMethod="POST", serverError={}, url="http://mydomain", code=SERVER_ERROR, version=web/5.4.0)]
If replacing domain name with IP address of boot node in connection url, then it works:
LOG blockNumber returned : 53826
Acceptance Criteria
Shall return block number.
Steps to Reproduce (Bug)
See code in above
2. [Step 2]
3. [Step ...]
Expected behavior: [What you expect to happen]
Shall return block number with domain name in provider
Actual behavior: [What actually happens]
NO response with domain name.
Frequency: [What percentage of the time does it occur?]
every time
Versions (Add all that apply)
besu --version
]21.7.2java -version
] openjdk 14cat /etc/*release
] MacOSuname -a
]vmware -v
]docker version
]Additional Information
React Native : 0.64.2
ethers: 5.4
The text was updated successfully, but these errors were encountered: