Here’s a snippet of code :
dr = {
"host": anvil.secrets.decrypt_with_key("secret_dbcreds2",r['host']),
which causes this error :
anvil.secrets.SecretError: This is not a valid key
and here’s my secrets page :
Here’s a snippet of code :
dr = {
"host": anvil.secrets.decrypt_with_key("secret_dbcreds2",r['host']),
which causes this error :
anvil.secrets.SecretError: This is not a valid key
and here’s my secrets page :
Hm, this works just fine for me. Are you able to round-trip a value through that encryption key as follows?
f = anvil.secrets.encrypt_with_key('secret_dbcreds2', "foo")
print f
print anvil.secrets.decrypt_with_key('secret_dbcreds2', f)
That should help us narrow down the problem. Thanks!
No - this was tied up with the other issue I posted (whereby I can cloned an app locally and lost the keys).
Please close.
Ok, thanks for the update!