Skip to content

JSON-RPC Use #2691

Jul 2, 2022 · 3 comments · 7 replies
Discussion options

You must be logged in to vote

Hi,

Any ideas why curl isn't working?

The Jamulus JSON-RPC interface is line-based. HTTP won't work (other implementations might use JSON-RPC over HTTP, but Jamulus doesn't). I could imagine that curl worked on @dtinth's initial PR by accident, because invalid JSON (e.g. POST ...) would just be ignored. The parsing has been made more strict by now though.

Does the Servername change require support from the directory server as well in order for that name to change?

No additional directory server support is required.

Example:

$ nc localhost 8080
{"id":1,"jsonrpc":"2.0","method":"jamulus/apiAuth","params":{"secret": "iyetlE6KgLPUMQ=="}}
{"id":1,"jsonrpc":"2.0","result":"ok"}

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@rdica
Comment options

Comment options

You must be logged in to vote
1 reply
@rdica
Comment options

Answer selected by rdica
Comment options

You must be logged in to vote
5 replies
@rdica
Comment options

@rdica
Comment options

@pljones
Comment options

@rdica
Comment options

@rdica
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants