https://prefect.io logo
Title
l

Laura Vaida

03/09/2021, 2:27 PM
how do i define a json file as a prefect secret with multiple values, e.g. to connect to a database in the ui?
m

Mariia Kerimova

03/09/2021, 2:48 PM
Hello Laura! Defining json secrets is the same as for any other type of secrets. Go to Team tab -> Secrets -> Add secret and paste json secret.
l

Laura Vaida

03/09/2021, 3:40 PM
thanks for the answer! I want to connect to a database, resulting this error:
Unexpected error: TypeError('Connect() argument after ** must be a mapping, not PrefectSecret'
?
m

Mariia Kerimova

03/09/2021, 4:55 PM
It seems that the issue is related to unpacking, not Prefect. It seems you’re looking for someone to walk you through step-by-step in your setup, which I’m unable to do. If you will face problems with PrefectSecret, please open an issue.
l

Laura Vaida

03/09/2021, 5:52 PM
okeey thanks for your answer! I guess that's what the channel is about
1