Open l0rn0r opened 2 years ago
Thanks for your question! Apologies I did not see it earlier.
If my memory is correct, the query should be supplied in the HTTP Body of a POST request rather than in the query parameter. I will update the documentation accordingly to make it clear. I will also consider making the query parameter work as you expect in a future release. Thanks for the heads up!
Note that the HTTP server of RumbleDB is very simplistic and more here as a backend for the Jupyter Notebook (with the RumbleDB PiPy library). An even better way to interact with RumbleDB over a server is through Apache Livy, exposed by most cloud providers when you trigger a Spark cluster, and which is more robust for complex use cases because it really forwards everything to the command line RumbleDB.
Hi, I'm running a RumbleDB docker as a server with the current docker image & it works with Jupyter Notebooks. Now I'm trying to run HTTP requests, and for example
http://localhost:8001/jsoniq?query-path=/home/query.jq
(/home is mounted), withjson-file("/home/data.json")
as query.jq works.But when I try to use a HTTP parameter like
query
:http://localhost:8001/jsoniq?query='1+1'
I get aParser failed.
[XPST0003] error response. https://github.com/RumbleDB/rumble/blob/master/docs/HTTPServer.md#testing-that-it-works-not-necessary-for-most-end-users says: Almost all parameters from the command line are exposed as HTTP parameters. And there is aquery
parameter: https://rumble.readthedocs.io/en/latest/CLI/So how can I use the HTTP parameters?
The error-message when posting with the
query
parameter is:The same with
?query="1+1"
and?query=1+1
.Thanks for any help. Best, Jonas