Comments (5)
hi @zydjohnHotmail. RSKj is not a web app. On port 4444
it only provides JSON-RPC api, meaning that only RPC requests (via HTTP POST) are being accepted.
from rskj.
Hi,
I know this, I have tested other blockchain, if they use RPC service, and if the port are exported, I can visit the http://127.0.0.1:port#, but I will get error message like: the port only support HTTP post request, which means the RPC is running well, and I can visit the RPC server from Windows 10 host. But RSKJ seems a little different, since I can use curl http post request inside the Docker container, it means the RPC server is working inside the Docker container, and I exported the port to 127.0.0.1 or localhost, which I should be able to use the RPC service from within Windows 10 host.
I have tried so many other blockchain RPC in Dockers, except RSKJ, if I can use Curl inside Docker container, then I can use http post request from Windows 10 Host. But I don't why it is not working with RSKJ.
from rskj.
and does the curl query also work outside your docker container? RSKj is not intended for use over HTTP GET - this is what happening when you try to open that link in a browser.
from rskj.
No, outside docker container, RSKj is not working.
However, some other blockchain, I have tried, if they work inside a docker container, then they work outside docker container, I mean in Windows 10 host. If I click on the RSKj link, like: http://127.0.0.1:4444, I got error like: This page isn't working at the momentlocalhost didn’t send any data.
ERR_EMPTY_RESPONSE
For other blockchain, if RPC server is working inside docker container, and when I click on localhost port from docker container, which I send a http get request, I got error message like: the port only support HTTP post request.
In this case, I can use curl from Windows 10 to send HTTP post request to RPC server running inside Docker container.
Hope you understand.
from rskj.
unfortunately, the JSON-RPC interface in RSKj is not designed in the way that it can be open in a browser. Also this capability is not part of the eth spec. Closing the issue.
from rskj.
Related Issues (20)
- Opcode.java fields (require,ret) are wrongly named, replace them with (lookupDepth, popCount, pushCount) HOT 3
- The node has no RPC command to flush all state in memory into the databases in disk
- Signature Cache is not being used, even when activated, leading to poorer performance HOT 1
- LevelDB Batch not closed lead to resource leaks HOT 1
- I am getting no logs to stdout? HOT 6
- Old wiki in the README
- Unable to sync HOT 4
- Entire chain syncing from scratch after upgrade/restart HOT 5
- Compatibility issue with Hardhat
- Precompiles are not derived from DataWord
- Docker: log to stdout by default HOT 3
- A lot of funds are stuck in your bridge https://tokenbridge.rsk.co/ HOT 1
- New testnet node not starting initial block sync HOT 4
- Security e-mail bounces HOT 1
- Testnet node stuck after upgrade to 6.0.0 HOT 1
- Invalid block identifier '{' with eth_call method in json rpc server HOT 3
- trace_block JSON RPC method response doesn't contain "to" property for some transactions HOT 2
- RPC problem when deploying contracts with Foundry HOT 1
- Broken build from Gradle 7.x.x-- error during compile! - - - I upgraded it too gradle 8.8 , the wrapper and builder completely.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rskj.