Skip to content

Project Sync fails for ayon-kitsu 1.2.5 #103

@PrettyPurpleInk

Description

@PrettyPurpleInk

Is there an existing issue for this?

  • I have searched the existing issues and added correct labels.

Description

Syncing projects fails with following error:

ayon-worker-1    | File "/usr/local/lib/python3.11/site-packages/gazu/client.py", line 312, in check_status
ayon-worker-1    | raise NotAuthenticatedException(path)
ayon-worker-1    | gazu.exception.NotAuthenticatedException: data/projects/6bb7b08c-9dc5-474d-a6e6-da86186b60b7/asset-types

As a result newly created assets and changes are not updated in AYON. I downgraded to 1.2.4, replaced the worker with the right version and with the same configuration it works again.

Unfortunately I don't have the Kitsu Logs on hand but it showed a couple of HTTP 200, followed by 401 so the inital login worked. The URL 'api/data/projects/6bb7b08c-9dc5-474d-a6e6-da86186b60b7/asset-types' also works in the browser with the configured credentials.

Steps To Reproduce:

  1. Standard configuration with email and password configured, service running and a Kitsu project linked.
  2. Manual Sync (Settings/Addon/Kitsu) because automatic Sync did not run.
  3. Nothing happened, error only showed in log files of server.

Additional context:

Versions

Version of the server, ayon-core and the addon that's affected
AYON-Server: 1.6.1+202501091712
ayon-kitsu: 1.2.5
ayon-core: 1.0.14
Kitsu: 0.20.25 / ghcr.io/emberlightvfx/kitsu-for-docker:0.20.25

Relevant log output:

ayon-worker-1    | 2025-01-30 10:24:19 INFO       kitsu_processor_1.2.5 Syncing kitsu project 6bb7b08c-9dc5-474d-a6e6-da86186b60b7 to Sharks
ayon-worker-1    | 2025-01-30 10:24:19 ERROR      kitsu_processor_1.2.5 Unable to sync kitsu project Sharks
ayon-worker-1    | 
ayon-worker-1    | Traceback (most recent call last):
ayon-worker-1    | File "/service/processor/processor.py", line 355, in start_processing
ayon-worker-1    | project_full_sync(self, kitsu_project_id, ayon_project_name)
ayon-worker-1    | File "/service/processor/fullsync.py", line 62, in project_full_sync
ayon-worker-1    | asset_types = get_asset_types(kitsu_project_id)
ayon-worker-1    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ayon-worker-1    | File "/service/processor/utils.py", line 8, in get_asset_types
ayon-worker-1    | raw_asset_types = gazu.asset.all_asset_types_for_project(kitsu_project_id)
ayon-worker-1    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ayon-worker-1    | File "/usr/local/lib/python3.11/site-packages/gazu/cache.py", line 204, in wrapper
ayon-worker-1    | return function(*args, **kwargs)
ayon-worker-1    | ^^^^^^^^^^^^^^^^^^^^^^^^^
ayon-worker-1    | File "/usr/local/lib/python3.11/site-packages/gazu/asset.py", line 275, in all_asset_types_for_project
ayon-worker-1    | return sort_by_name(raw.fetch_all(path, client=client))
ayon-worker-1    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ayon-worker-1    | File "/usr/local/lib/python3.11/site-packages/gazu/client.py", line 339, in fetch_all
ayon-worker-1    | return get(url_path_join("data", path), params=params, client=client)
ayon-worker-1    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ayon-worker-1    | File "/usr/local/lib/python3.11/site-packages/gazu/client.py", line 206, in get
ayon-worker-1    | check_status(response, path)
ayon-worker-1    | File "/usr/local/lib/python3.11/site-packages/gazu/client.py", line 312, in check_status
ayon-worker-1    | raise NotAuthenticatedException(path)
ayon-worker-1    | gazu.exception.NotAuthenticatedException: data/projects/6bb7b08c-9dc5-474d-a6e6-da86186b60b7/asset-types

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityIssues and PRs coming from the community memberstype: bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions