Failed to read project permissions

RohitRanga
RohitRanga Registered Posts: 41 ✭✭✭✭
edited July 16 in General Discussion

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
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
    Answer ✓

    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

Setup Info
    Tags
      Help me…