dataikuapi.utils.DataikuException: com.dataiku.dip.exceptions.UnauthorizedException: Failed to read

DGarg
Level 1
dataikuapi.utils.DataikuException: com.dataiku.dip.exceptions.UnauthorizedException: Failed to read

from dataikuapi import DSSClient
import pandas as pd

client = DSSClient(host, apiKey)
client._session.verify = False
instance = client.get_app("<< Application Name >>").create_temporary_instance()

project = instance.get_as_project()
project.get_scenario("<< Scenario Name >>").run_and_wait()

Giving error while using scenerio

0 Kudos
1 Reply
AlexT
Dataiker

Hi @DGarg ,
Can you confirm the exact error you are seeing?  The code itself seems fine


with instance as client.get_app("myapp").create_temporary_instance() as inst:
     inst.get_as_project().get_scenario("xxx").run_and_wait()

https://developer.dataiku.com/latest/api-reference/python/dataiku-applications.html#dataikuapi.dss.a...

Thanks

0 Kudos