Giter VIP home page Giter VIP logo

Comments (5)

Vovchyk avatar Vovchyk commented on July 23, 2024

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.

zydjohnHotmail avatar zydjohnHotmail commented on July 23, 2024

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.

Vovchyk avatar Vovchyk commented on July 23, 2024

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.

zydjohnHotmail avatar zydjohnHotmail commented on July 23, 2024

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.

Vovchyk avatar Vovchyk commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.