I am also new to Keto and i am trying to create a ...
# talk-keto
g
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
what version are you running?
g
v0.7.0-alpha.1
it is changed to "subject_id" instead of "subject", thanks
s
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
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