Hi, I'm trying to use ory-keto-client in my python...
# talk-keto
t
Hi, I'm trying to use ory-keto-client in my python application. I'm following this read.md file to create tuple on keto Here is the code that I'm using in my application
Copy code
try:   
   print(relation_query)
   api_response = api_instance.create_relation_tuple(relation_query=relation_query)
   print(api_response)
   return api_response
except ory_keto_client.ApiException as e:
   print("Exception when calling WriteApi - create_relation_tuple : %s " % e)
And this is the response I'm getting
Copy code
Exception when calling WriteApi - create_relation_tuple : Status Code: 404
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Type': 'text/plain; charset=utf-8', 'X-Content-Type-Options': 'nosniff', 'Date': 'Wed, 10 Aug 2022 16:38:38 GMT', 'Content-Length': '19'})
HTTP response body: 404 page not found
As it's trying to find "/admin/relation-tuples" which is not on keto server but when I make a request with this subpath "/relation-tuples" through my postman. It works !! Is there any possible way to change the create tuple endpoint to "/relation-tuples" . So it will work on my system
s
you have to use the correct SDK version for your server version (i.e. the same) 😉
t
Thanks it is resolved now