codenotary / immudb-py

immudb Python SDK
Apache License 2.0
43 stars 7 forks source link

Permission for history #13

Closed amadensor closed 3 years ago

amadensor commented 3 years ago

When using a get for the same key, I get results. When using immuclient as the same user, history works. When using history from the Python connector, I get:

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:< status = StatusCode.UNKNOWN details = "you do not have permission for this operation" debug_error_string = "{"created":"@1607898051.288363185","description":"Error received from peer ipv6:[::1]:3322","file":"src/core/lib/surface/call.cc","file_line":1062,"grpc_message":"you do not have permission for this operation","grpc_status":2}"

Note: I was unable to install via pip (older version without history instead was installed) so I grabbed current master from GitHub.

SimoneLazzaris commented 3 years ago

@amadensor , what are permission for that user?

amadensor commented 3 years ago

immuadmin-v0.8.0-linux-amd64 2 immuvote true immuvote Read/Write immudb 2020-12-12 11:47:13.653569786 -0700 MST

SimoneLazzaris commented 3 years ago

This is due to a change in the immudb api. Please try with feat/nosv branch, that mirrors last modification schema from immudb and will be merged soon.

amadensor commented 3 years ago

Thank you. I will test that ASAP.

amadensor commented 3 years ago

It now returns a list. Thank you. I will now adjust my code to handle the list.