Comments (9)
OK, understood, we'll look into it.
from multichain.
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.
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.
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.
Debugged a little. Looks like the multichain-cli
request is sent with Host: 127.0.0.1
header which breaks the flow:
from multichain.
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.
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.
This should be fixed in the latest builds released today - please confirm.
from multichain.
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)
- Linux 18 Build fail - /v8/v8engine.h:10:10: fatal error: v8.h: No such file or directory #include <v8.h>
- getnewadress or keypollrefill - return error in cold wallet
- Compiling MultiChain on Mac OS X Mojave
- RPC 500 HTTP error on not found block and tx
- The RPC server response error data on high concurrent requests.
- Compile error HOT 1
- compile error HOT 2
- liststreamitems pagination does not work for descending ordering HOT 2
- "Forgetting" the private part of an address?
- "-initprivkey" broken with 2.1.1 HOT 2
- "-rpcport" not honored in "params.dat" HOT 3
- Wrong address tried to connect to other nodes HOT 4
- Wishlist: RPC call to wait
- Poor native blockchain currency settings means no one can submit transactions HOT 8
- Item data should be hexadecimal string HOT 1
- Travis CI integration for macOS binaries HOT 11
- Missing error message details on non-mandatory-script-verify-flag HOT 1
- Smart Filter: Error when passing strings like: 'I\'m a valid string!'
- SmartFilter: JS-Code size limit? HOT 1
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 multichain.