ynput / ayon-kitsu

Official AYON<->Kitsu intetgration (WIP)
Apache License 2.0
8 stars 6 forks source link

Kitsu Addon: auto re-authorize #66

Open martastain opened 3 months ago

martastain commented 3 months ago

Is there an existing issue for this?

Current Behavior:

when service fails with the following exception: Traceback (most recent call last): File "/service/processor/processor.py", line 128, in start_processing full_sync(self, kitsu_project_id, ayon_project_name) File "/service/processor/fullsync.py", line 40, in full_sync asset_types = get_asset_types(kitsu_project_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/service/processor/fullsync.py", line 14, in get_asset_types raw_asset_types = gazu.asset.all_asset_types_for_project(kitsu_project_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gazu/cache.py", line 204, in wrapper return function(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gazu/asset.py", line 275, in all_asset_types_for_project return sort_by_name(raw.fetch_all(path, client=client)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gazu/client.py", line 339, in fetch_all return get(url_path_join("data", path), params=params, client=client) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/gazu/client.py", line 206, in get check_status(response, path) File "/usr/local/lib/python3.11/site-packages/gazu/client.py", line 312, in check_status raise NotAuthenticatedException(path) gazu.exception.NotAuthenticatedException: data/projects/fe07d5b9-8492-4071-bf0b-63033743009e/asset-types (edited)

Expected Behavior:

enforce re-login and try to process the event again

Version

1.0.0

What platform you are running on?

Linux / Ubuntu

Steps To Reproduce:

just wait

Are there any labels you wish to add?

Relevant log output:

No response

Additional context:

No response