Hi, just want to report this weird issue I'm having.
I have this issue consistently using both Ayon-Kitsu version 1.1.0 and 1.2.1 and using two different instances of Ayon version 1.1.1. I have also tried restarting the instances of Ayon.
When I click the sync button in the Kitsu tab, the Ayon page becomes unresponsive to shortcuts and if I click a different tab in Ayon, I just get redirected to the login screen.
Here is the error, that is happening during sync:
2024-05-17 17:38:10 INFO server [PATCH] /users/mads.hangaard
2024-05-17 17:38:10 INFO server sync_person
2024-05-17 17:38:10 INFO server [PATCH] /users/sofie.voss
2024-05-17 17:38:10 INFO server sync_person
2024-05-17 17:38:10 INFO server [PATCH] /users/tone.tarding
2024-05-17 17:38:10 INFO server sync_person
2024-05-17 17:38:10 ERROR anonymous [POST] /addons/kitsu/1.1.0/push: UNHANDLED EXCEPTION
2024-05-17 17:38:10 ERROR server 1 validation error for UserModel
name
string does not match regex "^[a-zA-Z0-9][a-zA-Z0-9_\.\-]*[a-zA-Z0-9]$" (type=value_error.str.regex; pattern=^[a-zA-Z0-9][a-zA-Z0-9_\.\-]*[a-zA-Z0-9]$)
[2024-05-17 17:38:10 +0200] [7148] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 426, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/addons/kitsu/1.1.0/__init__.py", line 84, in push
return await push_entities(
^^^^^^^^^^^^^^^^^^^^
File "/addons/kitsu/1.1.0/kitsu/push.py", line 577, in push_entities
await sync_person(
File "/addons/kitsu/1.1.0/kitsu/push.py", line 281, in sync_person
user = UserEntity(payload)
^^^^^^^^^^^^^^^^^^^
File "/backend/ayon_server/entities/user.py", line 50, in __init__
super().__init__(payload, exists, validate)
File "/backend/ayon_server/entities/core/toplevel.py", line 23, in __init__
self._payload = self.model.main_model(
^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for UserModel
name
string does not match regex "^[a-zA-Z0-9][a-zA-Z0-9_\.\-]*[a-zA-Z0-9]$" (type=value_error.str.regex; pattern=^[a-zA-Z0-9][a-zA-Z0-9_\.\-]*[a-zA-Z0-9]$)```
Hi, just want to report this weird issue I'm having.
I have this issue consistently using both Ayon-Kitsu version 1.1.0 and 1.2.1 and using two different instances of Ayon version 1.1.1. I have also tried restarting the instances of Ayon.
When I click the sync button in the Kitsu tab, the Ayon page becomes unresponsive to shortcuts and if I click a different tab in Ayon, I just get redirected to the login screen.
Here is the error, that is happening during sync: