I just tried to run the first query from the SurrealDB documentation.
DATA="INFO FOR DB;"
curl --request POST \
--header "Content-Type: application/json" \
--user "root:root" \
--data "${DATA}" \
http://localhost:8000/sql
This leads to the following error:
{
"code": 415,
"details": "Unsupported media type",
"description": "The request needs to adhere to certain constraints. Refer to the documentation for supported content types."
}
Why doesn't the query in the docs work?