nodeSolidServer / nodeSolidServer/node-solid-server
Fetch 204 resulted in error
未關閉
@jaxoncreed 已經在處理了。
開始於 2019年6月19日。
- 主要語言
- JavaScript
- 星號
- 1.8k
- 分支
- 308
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I got 204 No Content when GET a URI which does not exist, and I want to create it if it does not exist depends on res.status, but following code:
solidAuthClient
.fetch(uri)
.then(async (res: Response) => {
// might be 401 for /private , 403 for ACL blocking , 404 for uncreated, 200 for good
console.error('getTWContainersOnPOD() get it', uri, res.status);
return { status: res.status, uri, text: await res.text() };
})
.catch(error => {
console.error('getTWContainersOnPOD() containerTtlFiles', uri, error);
})
only resulted in
getTWContainersOnPOD() containerTtlFiles https://linonetwo.solid.authing.cn/public/tiddlywiki/main TypeError: Failed to fetch
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
評估
這個 Issue 還沒有評估資料。