Failed to read project permissions
RohitRanga
Registered Posts: 41 ✭✭✭✭
Hi, I am trying to read a pkl file from a managed folder using the python API.
client = dataikuapi.DSSClient("http://localhost:11000", "<api key>")
folder = dataikuapi.dss.managedfolder.DSSManagedFolder(client,
project_key='<project_key>',
odb_id='sQ8piu1r')
contents = folder.list_contents()
I am getting this error. Can you please support?
DataikuException: com.dataiku.dip.exceptions.UnauthorizedException: Failed to read project permissions
Best Answer
-
Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
Hi @RohitRanga
Usually, this error is being returned if you incorrectly pass over the project key. Can you please make sure that the project key (not the project name as you see it on the UI) is passed as the parameter?
Answers
-
@sergeyd
Thanks for the prompt support! yes it was an issue with the project key indeed.I assigned the project key as MYPROJECT by looking at the url:
localhost:11000/projects/MYPROJECT/