Giter Site home page Giter Site logo

Comments (9)

gidgreen avatar gidgreen commented on June 26, 2024 1

OK, understood, we'll look into it.

from multichain.

gidgreen avatar gidgreen commented on June 26, 2024

You are using the -rpcssl command-line parameter and this requires the node itself to be running with the same parameter. Could that be the problem?

from multichain.

easeev avatar easeev commented on June 26, 2024

Similar result without this parameter:

$ ./multichain-cli nw-123-456-7 -rpcconnect=nd-123-456-789.p2pify.com -rpcport=80 -rpcuser=focused-koala -rpcpassword=shadow-sierra-sketch-edison-bonded-paging

MultiChain 2.0.2 RPC client


Interactive mode

nw-123-456-7: getinfo
{"method":"getinfo","params":[],"id":"81549545-1561687280","chain_name":"nw-123-456-7"}

error: couldn't parse reply from server

Chainstack JSON-RPC API is exposed through a dedicated ingress and not directly from the node. Perhaps that helps to understand the problem better.

from multichain.

gidgreen avatar gidgreen commented on June 26, 2024

Well yes, if you have some intermediate layer between the node and the incoming JSON-RPC request, that will probably explain the problem. You should be able to debug this by looking at the difference between the original response and the forwarded one.

from multichain.

easeev avatar easeev commented on June 26, 2024

Debugged a little. Looks like the multichain-cli request is sent with Host: 127.0.0.1 header which breaks the flow:

image

from multichain.

gidgreen avatar gidgreen commented on June 26, 2024

OK, thanks for working it out. This is a legitimate HTTP header so I think the intermediate layer needs to be able to process it, no?

from multichain.

easeev avatar easeev commented on June 26, 2024

Well, the intermediate layer is happy to process it if the value is correct and not 127.0.0.1 :)

See https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html:

The Host field value MUST represent the naming authority of the origin server or gateway given by the original URL.

from multichain.

gidgreen avatar gidgreen commented on June 26, 2024

This should be fixed in the latest builds released today - please confirm.

from multichain.

easeev avatar easeev commented on June 26, 2024

It works, thanks!

$ ./multichain-cli nw-123-456-78 -rpcconnect=nd-123-456-789.p2pify.com -rpcport=443 -rpcuser=focused-koala -rpcpassword=shadow-sierra-sketch-edison-bonded-paging -rpcssl

MultiChain 2.0.3 RPC client


Interactive mode

nw-123-456-78: getinfo
{"method":"getinfo","params":[],"id":"85616894-1576762628","chain_name":"nw-123-456-78"}

{
    "version" : "2.0.3",
...
}

from multichain.

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.