0
我在api
請求中收到401未經授權的錯誤。它適用於每個其他api
端點(連接,服務器,類)而不是查詢端點。有誰知道是否需要額外的參數進行授權?OrientDB HTTP REST API查詢未授權
fetch(
'http://localhost:2480/class/query/DB/sql/'+'Select from Results',
{
headers: { 'Authorization': 'Basic ' + base64.encode('admin'+":"+'admin')},
}
).then((res)=>{
console.log(res)
return res;
})
Error: {[{code: 401, reason: "Unauthorized", content: "401 Unauthorized."}]}
Aww軟糖,我沒有看到額外的'/ class',謝謝指出! – Leon