Skip to content

directory_id' not supplied on init #26

@anthony-chaudhary

Description

@anthony-chaudhary

When trying to run a basic SDK example just loading a project, the extra info is {'errors': ["'directory_id' not supplied"], 'success': False}

but a directory_id is supplied if I do
image

Related this is an old endpoint, doesn't use schema
https://github.com/diffgram/diffgram/blob/80e0284d4e98a8261adb475e32c1a69dcb5a0b58/default/methods/annotation/labels/view.py#L31

not sure where we left the new Schema upgrade on SDK side

Traceback (most recent call last):
  File "C:\AnthonyCodePlay\diffgram_play\aaaaa.py", line 3, in <module>
    project = Project(
  File "C:\Python310\lib\site-packages\diffgram\core\core.py", line 56, in __init__
    self.auth(
  File "C:\Python310\lib\site-packages\diffgram\core\core.py", line 212, in auth
    self.get_label_file_dict()
  File "C:\Python310\lib\site-packages\diffgram\file\view.py", line 56, in get_label_file_dict
    if data["log"]["success"] == True:
KeyError: 'log'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions