Hi, i have clone the repo <https://github.com/ory/...
# talk-keto
m
Hi, i have clone the repo https://github.com/ory/keto and trying to run this wirte api curl.sh file inside
contrib/docs-code-samples/simple-access-check-guide/00-write-direct-access/curl.sh
according to these docs https://www.ory.sh/docs/keto/guides/simple-access-check-guide but when i run the command
contrib/docs-code-samples/simple-access-check-guide/00-write-direct-access/curl.sh
in terminal i get the following error
do i need to run some keto docker-compose as well, by the way i am trying to run docker-compose inside the keto repo i cloned and when i run sudo docker-compose up i get the following error
d
Hello. Could you try to run this example?
👀 1
it has working version of docker-compose.yml file
m
ok so now i am using the docker-compose as you mentioned and docker-compose is running but when i now run the files i still get the error for creating tuples using both rest and grpc blew iare attached screenshots
@User?
d
Yes. I know what’s going on here. You need to change namespace in keto.yml config from videos to
message
m
ok
ok so after changing to message from videos i am getting following error, it exists with code 255
??
d
Here’s the minimal working example for check access guide
🙌 1
m
Great it works with rest endpoint, now i just want to do same thing using index.js meaning node js implemention but when i run i get the following error
d
I think that you need to run npm install
m
i have done that every place where i see the package.json file, one last thing sir can you please specify where exactly i nned to run the npm install and run the index.js file if i may be doing wrong
For future use, to run this
Copy code
git clone git@github.com:ory/keto

cd keto/proto
git checkout v0.8.0-alpha.2
npm i 
cd ../contrib/docs-code-samples
npm i
node ./simple-access-check-guide/00-write-direct-access/index.js

Thank you so much @Andrew Minkin (Ory) for ib support
Hi @User above examples are working but if i change the namespace in index.js file and than write api it throws the following error
d
@User Hello. You need to add the namespace to
keto.yml
🙌 1
m
Great i made changes to this keto.yaml file https://github.com/gen1us2k/ory_workshop/tree/master/keto ( which is cloned locally and ran docker-compose again and it started working)