https://www.ory.sh/ logo
#talk-keto
Title
# talk-keto
g

green-waiter-57771

01/15/2022, 8:53 PM
I am also new to Keto and i am trying to create a new relation-tuple like this
[9:40 PM] root@debug-1:/# curl -XPUT --data '{
    
"namespace": "default-namespace",
    
"object": "director",
    
"relation": "contracts",
    
"subject": "solicitor"
}' <http://ory-keto.auth-test.svc.cluster.local:4467/relation-tuples>
I get the following error message
{"error":{"code":400,"status":"Bad Request","message":"subject is not allowed to be nil"}}
My config yml is like this
serve:
read:
port: 4466
write:
port: 4467
namespaces:
- id: 0
name: default-namespace
Anybody has encounter this problem before ?
s

steep-lamp-91158

01/15/2022, 10:14 PM
what version are you running?
g

green-waiter-57771

01/16/2022, 12:07 PM
v0.7.0-alpha.1
it is changed to "subject_id" instead of "subject", thanks
s

steep-lamp-91158

01/16/2022, 2:48 PM
It should give you more indication of why it failed, especially pointing out that "subject" is not supported anymore
Did you use a code sample?
g

green-waiter-57771

01/16/2022, 3:25 PM
Yes the error message it's kind of misleading. I just deployed Keto on kubernetes and was testing the endpoints, I got the request sample from some outdated source i guess