Failed to read project permissions

Solved!
RohitRanga
Level 3
Failed to read project permissions

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

 

0 Kudos
1 Solution
sergeyd
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? 

View solution in original post

2 Replies
sergeyd
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? 

RohitRanga
Level 3
Author

@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/