Created
May 24, 2019 07:04
-
-
Save ewingson/88dcdaba2db423fc9e750eb197df332e to your computer and use it in GitHub Desktop.
copy_meta_put_recursive_file_jef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const auth = require('solid-auth-cli') | |
const file = 'https://jeffz.solid.community/public/likes.ttl.meta' | |
async function run(){ | |
await auth.login() | |
await auth.fetch(file,{ | |
method:"PUT", | |
body:"<> a <#test>.", | |
contentType:"text/turtle" | |
}).catch(e=>{console.log("Error : "+e)}) | |
let response = await auth.fetch(file).catch(e=>{console.log("Error : "+e)}) | |
console.log(response.status +" "+ response.statusText) | |
console.log(await response.text()) | |
} | |
run() | |
/* output : | |
404 Not Found | |
Trying to access metadata file as regular file | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment