Open meowsbits opened 4 years ago
Just noting that I also get this when running my oh-so-fancy new jade-service-runner-cli
(generated with the tool over at https://github.com/gregdhill/go-openrpc)
$ jade-service-runner-cli --http-addr 'http://localhost:8002' listServices
(
$ jade-service-runner-cli --help
This is an auto-generated CLI interface for an Open-RPC compliant API.
Open-RPC Version: 1.1.2
Run 'jade-service-runner-cli completion --help' to learn about auto-auto-completion! It's easy!
Usage:
jade-service-runner-cli [command]
Available Commands:
completion Generates bash completion scripts
help Help about any command
installService
listInstalledServices
listRunningServices
listServices
startService
Flags:
--config string config file (default is $HOME/.jade-service-runner-cli.yaml)
-h, --help help for jade-service-runner-cli
--http-addr string Address for JSON-RPC HTTP calls (default "http://localhost:8545")
-t, --toggle Help message for toggle
Use "jade-service-runner-cli [command] --help" for more information about a command.
)
seems pretty odd, maybe missing content type application/json ?
$ curl --max-time 5 -X POST -H 'Content-Type: application/json' -d '{"method": "listServices", "params":[], "id": "0"}' localhost:8002
curl: (28) Operation timed out after 5001 milliseconds with 0 bytes received
$ http --verbose --timeout 5 --json post http://localhost:8002 id=0 method=list_services params:=[] Content-Type:application/json
http: error: Request timed out (5.0s).
and the gen'd CLI is also definitely setting the header.
Describe the bug
jade-service-runner
times out on my request.To Reproduce
(The less fancy
curl
- as below - gives same result.)Expected behavior Not to silently time out; at least an error message.
Desktop (please complete the following information):