我只是尝试运行 SurrealDB文档中的第一个查询。
DATA="INFO FOR DB;"
curl --request POST \
--header "Content-Type: application/json" \
--user "root:root" \
--data "${DATA}" \
http://localhost:8000/sql
Run Code Online (Sandbox Code Playgroud)
这会导致以下错误:
{
"code": 415,
"details": "Unsupported media type",
"description": "The request needs to adhere to certain constraints. Refer to the documentation for supported content types."
}
Run Code Online (Sandbox Code Playgroud)
为什么文档中的查询不起作用?
surrealdb ×1