hxf/backend/data/logs/app.log

3669 lines
360 KiB
Plaintext

2025-12-04 11:02:51,315 - root - INFO - Logging configured successfully
2025-12-04 11:02:51,440 - root - INFO - Logging configured successfully
2025-12-04 11:02:51,630 - root - INFO - Starting up TH-Agenter application...
2025-12-04 11:02:51,660 - root - INFO - SQLite database engine created: sqlite:///./TH-Agenter.db
2025-12-04 11:02:51,799 - root - INFO - Database tables created
2025-12-04 11:02:51,799 - root - INFO - Database initialized
2025-12-04 13:10:14,338 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:14,340 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:14,341 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:14,342 - root - INFO - Clearing user context
2025-12-04 13:10:14,805 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:14,805 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:14,805 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:14,806 - root - INFO - Clearing user context
2025-12-04 13:10:15,152 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:15,152 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:15,152 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:15,153 - root - INFO - Clearing user context
2025-12-04 13:10:16,868 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:16,868 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:16,869 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:16,869 - root - INFO - Clearing user context
2025-12-04 13:10:17,206 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:17,207 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:17,207 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:17,207 - root - INFO - Clearing user context
2025-12-04 13:10:17,343 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:17,343 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:17,344 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:17,344 - root - INFO - Clearing user context
2025-12-04 13:10:17,501 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:17,502 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:17,502 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:17,502 - root - INFO - Clearing user context
2025-12-04 13:10:18,639 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:10:18,639 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:18,640 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:10:18,640 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:10:18,653 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:10:19,955 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:10:19,956 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:19,956 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:10:19,956 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:10:19,961 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:10:20,489 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:10:20,490 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:20,490 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:10:20,490 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:10:20,493 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:10:20,696 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:10:20,696 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:20,696 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:10:20,696 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:10:20,699 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:10:20,871 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:10:20,872 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:20,872 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:10:20,872 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:10:20,875 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:10:21,071 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:10:21,071 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:21,072 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:10:21,072 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:10:21,075 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:10:21,263 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:10:21,263 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:21,263 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:10:21,264 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:10:21,267 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:10:24,880 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:10:24,880 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:24,880 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:10:24,881 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:10:24,884 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:10:28,598 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:28,599 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:28,599 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:28,599 - root - INFO - Clearing user context
2025-12-04 13:10:28,625 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:28,626 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:28,626 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:28,627 - root - INFO - Clearing user context
2025-12-04 13:10:28,833 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:28,834 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:28,834 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:28,834 - root - INFO - Clearing user context
2025-12-04 13:10:28,840 - root - INFO - [MIDDLEWARE] Processing request: GET /api/knowledge-bases/
2025-12-04 13:10:28,841 - root - INFO - [MIDDLEWARE] Checking path: /api/knowledge-bases/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:28,841 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/knowledge-bases/
2025-12-04 13:10:28,841 - root - INFO - Clearing user context
2025-12-04 13:10:28,844 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 13:10:28,845 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:28,845 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 13:10:28,845 - root - INFO - Clearing user context
2025-12-04 13:10:28,852 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:10:28,853 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:28,853 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:10:28,853 - root - INFO - Clearing user context
2025-12-04 13:10:28,857 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 13:10:28,858 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:28,858 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 13:10:28,859 - root - INFO - Clearing user context
2025-12-04 13:10:28,862 - root - INFO - [MIDDLEWARE] Processing request: GET /api/knowledge-bases/
2025-12-04 13:10:28,863 - root - INFO - [MIDDLEWARE] Checking path: /api/knowledge-bases/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:28,863 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/knowledge-bases/
2025-12-04 13:10:28,864 - root - INFO - Clearing user context
2025-12-04 13:10:28,870 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 13:10:28,870 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:28,870 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 13:10:28,871 - root - INFO - Clearing user context
2025-12-04 13:10:31,010 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:10:31,010 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:31,011 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:10:31,011 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:10:31,013 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:10:58,228 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:10:58,228 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:10:58,229 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:10:58,229 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:10:58,232 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:11:12,492 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:11:12,493 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:11:12,493 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:11:12,493 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:11:12,496 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:11:13,239 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:11:13,239 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:11:13,240 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:11:13,240 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:11:13,243 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:11:13,449 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:11:13,450 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:11:13,450 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:11:13,450 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:11:13,454 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:11:13,657 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:11:13,657 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:11:13,657 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:11:13,658 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:11:13,661 - root - ERROR - Database session error: 401: Incorrect email or password
2025-12-04 13:13:12,453 - root - INFO - Shutting down TH-Agenter application...
2025-12-04 13:13:19,714 - root - INFO - Logging configured successfully
2025-12-04 13:13:19,817 - root - INFO - Logging configured successfully
2025-12-04 13:13:20,007 - root - INFO - Starting up TH-Agenter application...
2025-12-04 13:13:20,037 - root - INFO - SQLite database engine created: sqlite:///./TH-Agenter.db
2025-12-04 13:13:20,043 - root - INFO - Database tables created
2025-12-04 13:13:20,043 - root - INFO - Database initialized
2025-12-04 13:14:21,552 - root - INFO - Shutting down TH-Agenter application...
2025-12-04 13:14:42,425 - root - INFO - Logging configured successfully
2025-12-04 13:14:42,531 - root - INFO - SQLite database engine created: sqlite:///./TH-Agenter.db
2025-12-04 13:14:42,535 - root - INFO - Database tables created
2025-12-04 13:14:42,790 - th_agenter.th_agenter.services.user - INFO - User created successfully: test
2025-12-04 13:15:01,086 - root - INFO - Logging configured successfully
2025-12-04 13:15:01,183 - root - INFO - Logging configured successfully
2025-12-04 13:15:01,329 - root - INFO - Starting up TH-Agenter application...
2025-12-04 13:15:01,347 - root - INFO - SQLite database engine created: sqlite:///./TH-Agenter.db
2025-12-04 13:15:01,352 - root - INFO - Database tables created
2025-12-04 13:15:01,352 - root - INFO - Database initialized
2025-12-04 13:19:26,858 - root - INFO - Shutting down TH-Agenter application...
2025-12-04 13:20:43,291 - root - INFO - Logging configured successfully
2025-12-04 13:20:43,383 - root - INFO - Logging configured successfully
2025-12-04 13:20:43,531 - root - INFO - Starting up TH-Agenter application...
2025-12-04 13:20:43,548 - root - INFO - SQLite database engine created: sqlite:///./TH-Agenter.db
2025-12-04 13:20:43,552 - root - INFO - Database tables created
2025-12-04 13:20:43,552 - root - INFO - Database initialized
2025-12-04 13:20:54,188 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:20:54,188 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:54,189 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:20:54,189 - root - INFO - Clearing user context
2025-12-04 13:20:54,243 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:54,243 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:54,243 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:54,244 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:54,247 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:20:54,247 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764828763}
2025-12-04 13:20:54,248 - root - INFO - Looking for user with username: admin
2025-12-04 13:20:54,250 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:20:54,250 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:54,250 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:20:54,258 - root - INFO - Clearing user context
2025-12-04 13:20:54,269 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/roles/user-roles/user/2
2025-12-04 13:20:54,270 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/roles/user-roles/user/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:54,270 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/roles/user-roles/user/2
2025-12-04 13:20:54,270 - root - INFO - Clearing user context
2025-12-04 13:20:54,273 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:54,273 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:54,273 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:54,274 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:54,275 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:20:54,276 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764828763}
2025-12-04 13:20:54,276 - root - INFO - Looking for user with username: admin
2025-12-04 13:20:54,277 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:20:54,278 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:54,278 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:20:54,283 - root - INFO - Clearing user context
2025-12-04 13:20:55,495 - root - INFO - [MIDDLEWARE] Processing request: POST /api/auth/login
2025-12-04 13:20:55,496 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/login against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:55,496 - root - INFO - [MIDDLEWARE] Path /api/auth/login exactly matches exclude_path /api/auth/login
2025-12-04 13:20:55,496 - root - INFO - [MIDDLEWARE] Skipping authentication for excluded path: /api/auth/login
2025-12-04 13:20:55,734 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:20:55,735 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:55,735 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:20:55,735 - root - INFO - Clearing user context
2025-12-04 13:20:55,737 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:55,737 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,738 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:55,738 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:55,740 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:20:55,740 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:20:55,740 - root - INFO - Looking for user with username: admin
2025-12-04 13:20:55,742 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:20:55,742 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,742 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:20:55,744 - root - INFO - Clearing user context
2025-12-04 13:20:55,751 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/roles/user-roles/user/2
2025-12-04 13:20:55,752 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/roles/user-roles/user/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:55,752 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/roles/user-roles/user/2
2025-12-04 13:20:55,752 - root - INFO - Clearing user context
2025-12-04 13:20:55,754 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:55,755 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,755 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:55,755 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:55,757 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:20:55,757 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:20:55,757 - root - INFO - Looking for user with username: admin
2025-12-04 13:20:55,759 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:20:55,759 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,760 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:20:55,762 - root - INFO - Clearing user context
2025-12-04 13:20:55,904 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 13:20:55,905 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:55,905 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 13:20:55,905 - root - INFO - Clearing user context
2025-12-04 13:20:55,908 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:55,908 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,908 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:55,909 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:55,910 - root - INFO - [MIDDLEWARE] Processing request: GET /api/knowledge-bases/
2025-12-04 13:20:55,911 - root - INFO - [MIDDLEWARE] Checking path: /api/knowledge-bases/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:55,911 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/knowledge-bases/
2025-12-04 13:20:55,911 - root - INFO - Clearing user context
2025-12-04 13:20:55,913 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:55,914 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,914 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:55,914 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:55,930 - root - INFO - Clearing user context
2025-12-04 13:20:55,932 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:20:55,932 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:20:55,933 - root - INFO - Looking for user with username: admin
2025-12-04 13:20:55,935 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:20:55,935 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,935 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:20:55,960 - root - INFO - Clearing user context
2025-12-04 13:20:55,962 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 13:20:55,962 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:55,963 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 13:20:55,963 - root - INFO - Clearing user context
2025-12-04 13:20:55,966 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:55,967 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,967 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:55,967 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:55,969 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/count
2025-12-04 13:20:55,970 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/count against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:55,970 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/count
2025-12-04 13:20:55,970 - root - INFO - Clearing user context
2025-12-04 13:20:55,972 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:55,973 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,973 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:55,973 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:55,980 - root - INFO - [MIDDLEWARE] Processing request: GET /api/knowledge-bases/
2025-12-04 13:20:55,981 - root - INFO - [MIDDLEWARE] Checking path: /api/knowledge-bases/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:55,981 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/knowledge-bases/
2025-12-04 13:20:55,981 - root - INFO - Clearing user context
2025-12-04 13:20:55,983 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:55,983 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,983 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:55,984 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:55,986 - root - INFO - Clearing user context
2025-12-04 13:20:55,988 - root - INFO - Clearing user context
2025-12-04 13:20:55,992 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:20:55,993 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:20:55,994 - root - INFO - Looking for user with username: admin
2025-12-04 13:20:55,996 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:20:55,996 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:55,997 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 13:20:55,997 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:20:55,997 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:55,998 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 13:20:55,998 - root - INFO - Clearing user context
2025-12-04 13:20:56,000 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:56,000 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:56,000 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:56,000 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:56,008 - root - INFO - Clearing user context
2025-12-04 13:20:56,009 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/count
2025-12-04 13:20:56,010 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/count against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:56,010 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/count
2025-12-04 13:20:56,010 - root - INFO - Clearing user context
2025-12-04 13:20:56,012 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:56,012 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:56,013 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:56,013 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:56,018 - root - INFO - Clearing user context
2025-12-04 13:20:56,024 - root - INFO - Clearing user context
2025-12-04 13:20:56,034 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/count
2025-12-04 13:20:56,034 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/count against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:20:56,034 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/count
2025-12-04 13:20:56,035 - root - INFO - Clearing user context
2025-12-04 13:20:56,036 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:20:56,036 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:20:56,037 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:20:56,037 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:20:56,039 - root - INFO - Clearing user context
2025-12-04 13:21:04,714 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/45
2025-12-04 13:21:04,715 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/45 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:04,716 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/45
2025-12-04 13:21:04,716 - root - INFO - Clearing user context
2025-12-04 13:21:04,722 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:04,722 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:04,722 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:04,722 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:04,729 - root - INFO - Clearing user context
2025-12-04 13:21:04,744 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/45/messages
2025-12-04 13:21:04,744 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/45/messages against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:04,745 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/45/messages
2025-12-04 13:21:04,745 - root - INFO - Clearing user context
2025-12-04 13:21:04,747 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:04,747 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:04,747 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:04,747 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:04,756 - root - INFO - Clearing user context
2025-12-04 13:21:05,324 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/44
2025-12-04 13:21:05,325 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/44 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:05,325 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/44
2025-12-04 13:21:05,325 - root - INFO - Clearing user context
2025-12-04 13:21:05,326 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:05,327 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:05,327 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:05,327 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:05,330 - root - INFO - Clearing user context
2025-12-04 13:21:05,345 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/44/messages
2025-12-04 13:21:05,346 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/44/messages against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:05,346 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/44/messages
2025-12-04 13:21:05,346 - root - INFO - Clearing user context
2025-12-04 13:21:05,348 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:05,348 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:05,349 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:05,349 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:05,352 - root - INFO - Clearing user context
2025-12-04 13:21:05,734 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/43
2025-12-04 13:21:05,734 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/43 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:05,735 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/43
2025-12-04 13:21:05,735 - root - INFO - Clearing user context
2025-12-04 13:21:05,737 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:05,737 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:05,737 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:05,737 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:05,740 - root - INFO - Clearing user context
2025-12-04 13:21:05,753 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/43/messages
2025-12-04 13:21:05,754 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/43/messages against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:05,754 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/43/messages
2025-12-04 13:21:05,754 - root - INFO - Clearing user context
2025-12-04 13:21:05,755 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:05,756 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:05,756 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:05,756 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:05,758 - root - INFO - Clearing user context
2025-12-04 13:21:06,085 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/42
2025-12-04 13:21:06,085 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/42 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:06,086 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/42
2025-12-04 13:21:06,086 - root - INFO - Clearing user context
2025-12-04 13:21:06,088 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:06,089 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:06,089 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:06,089 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:06,092 - root - INFO - Clearing user context
2025-12-04 13:21:06,105 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/42/messages
2025-12-04 13:21:06,106 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/42/messages against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:06,106 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/42/messages
2025-12-04 13:21:06,106 - root - INFO - Clearing user context
2025-12-04 13:21:06,108 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:06,108 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:06,108 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:06,108 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:06,111 - root - INFO - Clearing user context
2025-12-04 13:21:06,388 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/40
2025-12-04 13:21:06,389 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/40 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:06,389 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/40
2025-12-04 13:21:06,389 - root - INFO - Clearing user context
2025-12-04 13:21:06,390 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:06,391 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:06,391 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:06,391 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:06,394 - root - INFO - Clearing user context
2025-12-04 13:21:06,406 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/40/messages
2025-12-04 13:21:06,406 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/40/messages against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:06,407 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/40/messages
2025-12-04 13:21:06,407 - root - INFO - Clearing user context
2025-12-04 13:21:06,408 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:06,409 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:06,409 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:06,409 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:06,412 - root - INFO - Clearing user context
2025-12-04 13:21:27,175 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:21:27,175 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:27,176 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:21:27,176 - root - INFO - Clearing user context
2025-12-04 13:21:27,178 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:27,178 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,179 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:27,179 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:27,181 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:27,182 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:27,182 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:27,184 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:27,184 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,185 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:27,188 - root - INFO - Clearing user context
2025-12-04 13:21:27,208 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/roles/user-roles/user/2
2025-12-04 13:21:27,209 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/roles/user-roles/user/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:27,209 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/roles/user-roles/user/2
2025-12-04 13:21:27,209 - root - INFO - Clearing user context
2025-12-04 13:21:27,211 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:27,212 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,212 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:27,213 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:27,215 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:27,215 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:27,216 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:27,218 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:27,218 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,218 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:27,224 - root - INFO - Clearing user context
2025-12-04 13:21:27,785 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 13:21:27,786 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:27,786 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 13:21:27,786 - root - INFO - Clearing user context
2025-12-04 13:21:27,788 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:27,788 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,789 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:27,789 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:27,790 - root - INFO - [MIDDLEWARE] Processing request: GET /api/knowledge-bases/
2025-12-04 13:21:27,790 - root - INFO - [MIDDLEWARE] Checking path: /api/knowledge-bases/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:27,791 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/knowledge-bases/
2025-12-04 13:21:27,791 - root - INFO - Clearing user context
2025-12-04 13:21:27,794 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:27,794 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,795 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:27,795 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:27,800 - root - INFO - Clearing user context
2025-12-04 13:21:27,801 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:27,801 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:27,802 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:27,803 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:27,804 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,804 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:27,812 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 13:21:27,812 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:27,812 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 13:21:27,813 - root - INFO - Clearing user context
2025-12-04 13:21:27,816 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:27,817 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,817 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:27,817 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:27,819 - root - INFO - Clearing user context
2025-12-04 13:21:27,821 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/count
2025-12-04 13:21:27,821 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/count against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:27,821 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/count
2025-12-04 13:21:27,821 - root - INFO - Clearing user context
2025-12-04 13:21:27,824 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:27,824 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,825 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:27,825 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:27,834 - root - INFO - Clearing user context
2025-12-04 13:21:27,838 - root - INFO - [MIDDLEWARE] Processing request: GET /api/knowledge-bases/
2025-12-04 13:21:27,838 - root - INFO - [MIDDLEWARE] Checking path: /api/knowledge-bases/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:27,838 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/knowledge-bases/
2025-12-04 13:21:27,839 - root - INFO - Clearing user context
2025-12-04 13:21:27,841 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:27,842 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,842 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:27,842 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:27,847 - root - INFO - Clearing user context
2025-12-04 13:21:27,849 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 13:21:27,850 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:27,850 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 13:21:27,850 - root - INFO - Clearing user context
2025-12-04 13:21:27,852 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:27,853 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,853 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:27,853 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:27,856 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:27,857 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:27,857 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:27,858 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/count
2025-12-04 13:21:27,859 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:27,859 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/count against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:27,859 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,859 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/count
2025-12-04 13:21:27,860 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:27,860 - root - INFO - Clearing user context
2025-12-04 13:21:27,862 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:27,862 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,862 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:27,863 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:27,869 - root - INFO - Clearing user context
2025-12-04 13:21:27,871 - root - INFO - Clearing user context
2025-12-04 13:21:27,877 - root - INFO - Clearing user context
2025-12-04 13:21:27,883 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/count
2025-12-04 13:21:27,884 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/count against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:27,884 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/count
2025-12-04 13:21:27,884 - root - INFO - Clearing user context
2025-12-04 13:21:27,886 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:27,886 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:27,887 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:27,887 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:27,890 - root - INFO - Clearing user context
2025-12-04 13:21:29,610 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 13:21:29,611 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:29,611 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 13:21:29,611 - root - INFO - Clearing user context
2025-12-04 13:21:29,613 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:29,614 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:29,614 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:29,614 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:29,617 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:29,617 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:29,618 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:29,619 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:29,620 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:29,620 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:29,636 - root - INFO - Clearing user context
2025-12-04 13:21:32,906 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 13:21:32,907 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:32,907 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 13:21:32,907 - root - INFO - Clearing user context
2025-12-04 13:21:32,909 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:32,909 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:32,909 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:32,910 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:32,912 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:32,912 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:32,913 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:32,916 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:32,916 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:32,916 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:32,919 - root - INFO - Clearing user context
2025-12-04 13:21:32,938 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/roles/user-roles/user/2
2025-12-04 13:21:32,938 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/roles/user-roles/user/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:32,938 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/roles/user-roles/user/2
2025-12-04 13:21:32,939 - root - INFO - Clearing user context
2025-12-04 13:21:32,940 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:32,941 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:32,941 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:32,941 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:32,943 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:32,944 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:32,944 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:32,946 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:32,946 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:32,946 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:32,950 - root - INFO - Clearing user context
2025-12-04 13:21:33,277 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 13:21:33,278 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:33,278 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 13:21:33,278 - root - INFO - Clearing user context
2025-12-04 13:21:33,280 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:33,280 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:33,281 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:33,281 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:33,283 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 13:21:33,283 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:33,284 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 13:21:33,284 - root - INFO - Clearing user context
2025-12-04 13:21:33,285 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:33,286 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:33,286 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:33,286 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:33,292 - root - INFO - Clearing user context
2025-12-04 13:21:33,293 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:33,294 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:33,295 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:33,297 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:33,297 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:33,297 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:33,305 - root - INFO - Clearing user context
2025-12-04 13:21:33,307 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/count
2025-12-04 13:21:33,307 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/count against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:33,308 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/count
2025-12-04 13:21:33,308 - root - INFO - Clearing user context
2025-12-04 13:21:33,311 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:33,312 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:33,312 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:33,312 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:33,315 - root - INFO - Clearing user context
2025-12-04 13:21:34,847 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 13:21:34,847 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:34,847 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 13:21:34,848 - root - INFO - Clearing user context
2025-12-04 13:21:34,849 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:34,850 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:34,850 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:34,850 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:34,852 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:34,852 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:34,852 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:34,853 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:34,854 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:34,854 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:34,861 - root - INFO - Clearing user context
2025-12-04 13:21:34,871 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 13:21:34,871 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:34,872 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 13:21:34,872 - root - INFO - Clearing user context
2025-12-04 13:21:34,873 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:34,874 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:34,874 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:34,874 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:34,875 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:34,876 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:34,876 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:34,878 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:34,879 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:34,879 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:34,887 - root - INFO - Clearing user context
2025-12-04 13:21:34,898 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 13:21:34,898 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:34,899 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:21:34,899 - root - INFO - Clearing user context
2025-12-04 13:21:34,900 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:34,901 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:34,901 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:34,901 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:34,903 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:34,903 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:34,904 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:34,905 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:34,905 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:34,905 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:34,910 - root - INFO - Clearing user context
2025-12-04 13:21:37,977 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:21:37,977 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:37,977 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:21:37,978 - root - INFO - Clearing user context
2025-12-04 13:21:37,979 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:37,980 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:37,980 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:37,980 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:37,983 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:37,983 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:37,984 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:37,985 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:37,985 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:37,985 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:38,009 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:21:38,010 - root - INFO - Clearing user context
2025-12-04 13:21:43,133 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:21:43,133 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:43,133 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:21:43,134 - root - INFO - Clearing user context
2025-12-04 13:21:43,135 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:43,136 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:43,136 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:43,136 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:43,138 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:43,139 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:43,139 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:43,140 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:43,141 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:43,141 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:43,152 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:21:43,153 - root - INFO - Clearing user context
2025-12-04 13:21:45,966 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 13:21:45,967 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:45,967 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 13:21:45,967 - root - INFO - Clearing user context
2025-12-04 13:21:45,969 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:45,969 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:45,969 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:45,969 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:45,971 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:45,972 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:45,972 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:45,973 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:45,974 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:45,974 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:45,981 - root - INFO - Clearing user context
2025-12-04 13:21:46,974 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 13:21:46,974 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:46,974 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 13:21:46,975 - root - INFO - Clearing user context
2025-12-04 13:21:46,976 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:46,976 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:46,977 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:46,977 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:46,978 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:46,979 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:46,979 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:46,980 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:46,981 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:46,981 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:46,988 - root - INFO - Clearing user context
2025-12-04 13:21:46,999 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 13:21:47,000 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:47,000 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 13:21:47,000 - root - INFO - Clearing user context
2025-12-04 13:21:47,001 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:47,002 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:47,002 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:47,002 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:47,004 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:47,004 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:47,004 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:47,006 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:47,006 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:47,007 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:47,009 - root - INFO - Clearing user context
2025-12-04 13:21:47,026 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 13:21:47,026 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:47,027 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:21:47,027 - root - INFO - Clearing user context
2025-12-04 13:21:47,029 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:47,030 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:47,030 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:47,030 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:47,032 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:47,032 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:47,033 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:47,034 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:47,034 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:47,034 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:47,036 - root - INFO - Clearing user context
2025-12-04 13:21:52,086 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:21:52,086 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:52,086 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:21:52,086 - root - INFO - Clearing user context
2025-12-04 13:21:52,088 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:52,088 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:52,088 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:52,089 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:52,091 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:52,091 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:52,091 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:52,092 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:52,093 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:52,093 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:52,101 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:21:52,102 - root - INFO - Clearing user context
2025-12-04 13:21:54,088 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:21:54,089 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:54,089 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:21:54,089 - root - INFO - Clearing user context
2025-12-04 13:21:54,090 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:54,091 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:54,091 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:54,091 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:54,093 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:54,093 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:54,094 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:54,095 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:54,095 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:54,095 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:54,102 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:21:54,103 - root - INFO - Clearing user context
2025-12-04 13:21:58,301 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:21:58,301 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:21:58,301 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:21:58,302 - root - INFO - Clearing user context
2025-12-04 13:21:58,303 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:21:58,304 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:58,304 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:21:58,304 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:21:58,307 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:21:58,307 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:21:58,307 - root - INFO - Looking for user with username: admin
2025-12-04 13:21:58,309 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:21:58,309 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:21:58,309 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:21:58,319 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:21:58,321 - root - INFO - Clearing user context
2025-12-04 13:26:57,110 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:26:57,110 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:26:57,110 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:26:57,110 - root - INFO - Clearing user context
2025-12-04 13:26:57,112 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:26:57,112 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:26:57,112 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:26:57,113 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:26:57,115 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:26:57,116 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:26:57,116 - root - INFO - Looking for user with username: admin
2025-12-04 13:26:57,118 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:26:57,118 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:26:57,118 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:26:57,126 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:26:57,128 - root - INFO - Clearing user context
2025-12-04 13:27:03,458 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:27:03,458 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:27:03,459 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:27:03,459 - root - INFO - Clearing user context
2025-12-04 13:27:03,460 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:27:03,461 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:27:03,461 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:27:03,461 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:27:03,463 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:27:03,463 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:27:03,463 - root - INFO - Looking for user with username: admin
2025-12-04 13:27:03,465 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:27:03,465 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:27:03,465 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:27:03,474 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:27:03,475 - root - INFO - Clearing user context
2025-12-04 13:27:13,258 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:27:13,258 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:27:13,258 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:27:13,259 - root - INFO - Clearing user context
2025-12-04 13:27:13,260 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:27:13,260 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:27:13,260 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:27:13,261 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:27:13,262 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:27:13,263 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:27:13,263 - root - INFO - Looking for user with username: admin
2025-12-04 13:27:13,264 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:27:13,264 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:27:13,264 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:27:13,281 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:27:13,282 - root - INFO - Clearing user context
2025-12-04 13:27:15,107 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:27:15,107 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:27:15,108 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:27:15,108 - root - INFO - Clearing user context
2025-12-04 13:27:15,109 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:27:15,110 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:27:15,110 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:27:15,110 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:27:15,112 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:27:15,112 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:27:15,112 - root - INFO - Looking for user with username: admin
2025-12-04 13:27:15,114 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:27:15,114 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:27:15,114 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:27:15,121 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:27:15,123 - root - INFO - Clearing user context
2025-12-04 13:27:17,494 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:27:17,495 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:27:17,495 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:27:17,495 - root - INFO - Clearing user context
2025-12-04 13:27:17,497 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:27:17,497 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:27:17,497 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:27:17,497 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:27:17,499 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:27:17,500 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:27:17,500 - root - INFO - Looking for user with username: admin
2025-12-04 13:27:17,501 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:27:17,501 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:27:17,501 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:27:17,508 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:27:17,509 - root - INFO - Clearing user context
2025-12-04 13:27:20,474 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 13:27:20,475 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 13:27:20,475 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 13:27:20,475 - root - INFO - Clearing user context
2025-12-04 13:27:20,477 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 13:27:20,477 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:27:20,477 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 13:27:20,477 - root - INFO - Verified current user ID in context: 2
2025-12-04 13:27:20,479 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 13:27:20,480 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 13:27:20,480 - root - INFO - Looking for user with username: admin
2025-12-04 13:27:20,481 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 13:27:20,481 - root - INFO - Verification - ContextVar user: admin
2025-12-04 13:27:20,481 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 13:27:20,489 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 13:27:20,490 - root - INFO - Clearing user context
2025-12-04 14:07:57,592 - root - INFO - Logging configured successfully
2025-12-04 14:07:57,705 - root - INFO - Logging configured successfully
2025-12-04 14:07:57,910 - root - INFO - Starting up TH-Agenter application...
2025-12-04 14:07:57,958 - root - INFO - SQLite database engine created: sqlite:///./TH-Agenter.db
2025-12-04 14:07:57,972 - root - INFO - Database tables created
2025-12-04 14:07:57,973 - root - INFO - Database initialized
2025-12-04 14:16:08,129 - root - INFO - [MIDDLEWARE] Processing request: GET /api/auth/me
2025-12-04 14:16:08,129 - root - INFO - [MIDDLEWARE] Checking path: /api/auth/me against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:16:08,129 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/auth/me
2025-12-04 14:16:08,130 - root - INFO - Clearing user context
2025-12-04 14:16:08,197 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:16:08,197 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:08,198 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:16:08,198 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:16:08,201 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:16:08,202 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:16:08,202 - root - INFO - Looking for user with username: admin
2025-12-04 14:16:08,204 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:16:08,204 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:08,204 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:16:08,222 - root - INFO - Clearing user context
2025-12-04 14:16:08,235 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/roles/user-roles/user/2
2025-12-04 14:16:08,235 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/roles/user-roles/user/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:16:08,235 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/roles/user-roles/user/2
2025-12-04 14:16:08,235 - root - INFO - Clearing user context
2025-12-04 14:16:08,238 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:16:08,238 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:08,238 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:16:08,238 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:16:08,240 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:16:08,241 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:16:08,241 - root - INFO - Looking for user with username: admin
2025-12-04 14:16:08,243 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:16:08,244 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:08,244 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:16:08,250 - root - INFO - Clearing user context
2025-12-04 14:16:09,125 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 14:16:09,126 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:16:09,126 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 14:16:09,126 - root - INFO - Clearing user context
2025-12-04 14:16:09,127 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:16:09,127 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:09,128 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:16:09,128 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:16:09,129 - root - INFO - [MIDDLEWARE] Processing request: GET /api/knowledge-bases/
2025-12-04 14:16:09,129 - root - INFO - [MIDDLEWARE] Checking path: /api/knowledge-bases/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:16:09,130 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/knowledge-bases/
2025-12-04 14:16:09,130 - root - INFO - Clearing user context
2025-12-04 14:16:09,132 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:16:09,132 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:09,132 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:16:09,133 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:16:09,149 - root - INFO - Clearing user context
2025-12-04 14:16:09,150 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:16:09,151 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:16:09,151 - root - INFO - Looking for user with username: admin
2025-12-04 14:16:09,153 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:16:09,154 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:09,155 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 14:16:09,155 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:16:09,155 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:16:09,156 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 14:16:09,156 - root - INFO - Clearing user context
2025-12-04 14:16:09,161 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:16:09,161 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:09,161 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:16:09,161 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:16:09,183 - root - INFO - Clearing user context
2025-12-04 14:16:09,190 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/count
2025-12-04 14:16:09,197 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/count against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:16:09,197 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/count
2025-12-04 14:16:09,197 - root - INFO - Clearing user context
2025-12-04 14:16:09,201 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:16:09,201 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:09,202 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:16:09,202 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:16:09,203 - root - INFO - Clearing user context
2025-12-04 14:16:09,205 - root - INFO - [MIDDLEWARE] Processing request: GET /api/knowledge-bases/
2025-12-04 14:16:09,206 - root - INFO - [MIDDLEWARE] Checking path: /api/knowledge-bases/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:16:09,206 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/knowledge-bases/
2025-12-04 14:16:09,206 - root - INFO - Clearing user context
2025-12-04 14:16:09,208 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:16:09,208 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:09,208 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:16:09,209 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:16:09,212 - root - INFO - Clearing user context
2025-12-04 14:16:09,215 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations
2025-12-04 14:16:09,215 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:16:09,216 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations
2025-12-04 14:16:09,216 - root - INFO - Clearing user context
2025-12-04 14:16:09,218 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:16:09,218 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:09,219 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:16:09,219 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:16:09,221 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:16:09,222 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:16:09,223 - root - INFO - Looking for user with username: admin
2025-12-04 14:16:09,226 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:16:09,226 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:09,228 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/count
2025-12-04 14:16:09,228 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:16:09,228 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/count against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:16:09,229 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/count
2025-12-04 14:16:09,229 - root - INFO - Clearing user context
2025-12-04 14:16:09,230 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:16:09,231 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:09,231 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:16:09,231 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:16:09,232 - root - INFO - Clearing user context
2025-12-04 14:16:09,238 - root - INFO - Clearing user context
2025-12-04 14:16:09,242 - root - INFO - Clearing user context
2025-12-04 14:16:09,251 - root - INFO - [MIDDLEWARE] Processing request: GET /api/chat/conversations/count
2025-12-04 14:16:09,251 - root - INFO - [MIDDLEWARE] Checking path: /api/chat/conversations/count against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:16:09,252 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/chat/conversations/count
2025-12-04 14:16:09,252 - root - INFO - Clearing user context
2025-12-04 14:16:09,253 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:16:09,254 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:16:09,254 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:16:09,254 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:16:09,257 - root - INFO - Clearing user context
2025-12-04 14:22:37,976 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:22:37,977 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:22:37,977 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:22:37,977 - root - INFO - Clearing user context
2025-12-04 14:22:37,979 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:22:37,980 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:37,980 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:22:37,980 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:22:37,982 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:22:37,982 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:22:37,982 - root - INFO - Looking for user with username: admin
2025-12-04 14:22:37,984 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:22:37,984 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:37,984 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:22:38,000 - root - INFO - Clearing user context
2025-12-04 14:22:40,162 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:22:40,163 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:22:40,163 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:22:40,163 - root - INFO - Clearing user context
2025-12-04 14:22:40,165 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:22:40,166 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:40,166 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:22:40,166 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:22:40,168 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:22:40,168 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:22:40,169 - root - INFO - Looking for user with username: admin
2025-12-04 14:22:40,171 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:22:40,171 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:40,171 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:22:40,178 - root - INFO - Clearing user context
2025-12-04 14:22:40,188 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:22:40,188 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:22:40,189 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:22:40,189 - root - INFO - Clearing user context
2025-12-04 14:22:40,190 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:22:40,191 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:40,191 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:22:40,191 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:22:40,193 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:22:40,193 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:22:40,193 - root - INFO - Looking for user with username: admin
2025-12-04 14:22:40,195 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:22:40,195 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:40,195 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:22:40,200 - root - INFO - Clearing user context
2025-12-04 14:22:40,210 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/2
2025-12-04 14:22:40,210 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:22:40,211 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:22:40,211 - root - INFO - Clearing user context
2025-12-04 14:22:40,212 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:22:40,212 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:40,213 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:22:40,213 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:22:40,214 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:22:40,214 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:22:40,215 - root - INFO - Looking for user with username: admin
2025-12-04 14:22:40,215 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:22:40,216 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:40,216 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:22:40,219 - root - INFO - Clearing user context
2025-12-04 14:22:51,717 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:22:51,717 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:22:51,717 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:22:51,717 - root - INFO - Clearing user context
2025-12-04 14:22:51,719 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:22:51,719 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:51,720 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:22:51,720 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:22:51,722 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:22:51,722 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:22:51,722 - root - INFO - Looking for user with username: admin
2025-12-04 14:22:51,723 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:22:51,724 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:51,724 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:22:51,735 - th_agenter.workflow_api - INFO - Updated workflow: qw3233 by user admin
2025-12-04 14:22:51,736 - root - INFO - Clearing user context
2025-12-04 14:22:53,744 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:22:53,744 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:22:53,744 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:22:53,744 - root - INFO - Clearing user context
2025-12-04 14:22:53,746 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:22:53,746 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:53,747 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:22:53,747 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:22:53,749 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:22:53,749 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:22:53,749 - root - INFO - Looking for user with username: admin
2025-12-04 14:22:53,751 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:22:53,751 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:53,751 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:22:53,768 - th_agenter.workflow_api - INFO - Updated workflow: qw3233 by user admin
2025-12-04 14:22:53,770 - root - INFO - Clearing user context
2025-12-04 14:22:57,124 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:22:57,124 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:22:57,125 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:22:57,125 - root - INFO - Clearing user context
2025-12-04 14:22:57,126 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:22:57,126 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:57,127 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:22:57,127 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:22:57,128 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:22:57,129 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:22:57,129 - root - INFO - Looking for user with username: admin
2025-12-04 14:22:57,130 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:22:57,130 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:22:57,131 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:22:57,137 - th_agenter.workflow_api - INFO - Updated workflow: qw3233 by user admin
2025-12-04 14:22:57,138 - root - INFO - Clearing user context
2025-12-04 14:23:06,944 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:23:06,945 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:23:06,945 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:23:06,945 - root - INFO - Clearing user context
2025-12-04 14:23:06,946 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:23:06,946 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:23:06,947 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:23:06,947 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:23:06,948 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:23:06,949 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:23:06,949 - root - INFO - Looking for user with username: admin
2025-12-04 14:23:06,950 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:23:06,950 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:23:06,950 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:23:06,965 - th_agenter.workflow_api - INFO - Updated workflow: qw3233 by user admin
2025-12-04 14:23:06,967 - root - INFO - Clearing user context
2025-12-04 14:23:12,408 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:23:12,408 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:23:12,408 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:23:12,409 - root - INFO - Clearing user context
2025-12-04 14:23:12,410 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:23:12,410 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:23:12,410 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:23:12,410 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:23:12,412 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:23:12,412 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:23:12,412 - root - INFO - Looking for user with username: admin
2025-12-04 14:23:12,413 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:23:12,413 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:23:12,413 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:23:12,421 - th_agenter.workflow_api - INFO - Updated workflow: qw3233 by user admin
2025-12-04 14:23:12,423 - root - INFO - Clearing user context
2025-12-04 14:23:37,040 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:23:37,040 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:23:37,040 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:23:37,041 - root - INFO - Clearing user context
2025-12-04 14:23:37,042 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:23:37,042 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:23:37,042 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:23:37,043 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:23:37,044 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:23:37,044 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:23:37,045 - root - INFO - Looking for user with username: admin
2025-12-04 14:23:37,046 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:23:37,046 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:23:37,046 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:23:37,061 - th_agenter.workflow_api - INFO - Updated workflow: qw3233 by user admin
2025-12-04 14:23:37,063 - root - INFO - Clearing user context
2025-12-04 14:23:40,765 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:23:40,765 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:23:40,765 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:23:40,766 - root - INFO - Clearing user context
2025-12-04 14:23:40,767 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:23:40,767 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:23:40,767 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:23:40,767 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:23:40,769 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:23:40,769 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:23:40,770 - root - INFO - Looking for user with username: admin
2025-12-04 14:23:40,771 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:23:40,771 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:23:40,771 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:23:40,777 - th_agenter.workflow_api - INFO - Updated workflow: qw3233 by user admin
2025-12-04 14:23:40,778 - root - INFO - Clearing user context
2025-12-04 14:23:53,043 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:23:53,043 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:23:53,044 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:23:53,044 - root - INFO - Clearing user context
2025-12-04 14:23:53,045 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:23:53,045 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:23:53,045 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:23:53,046 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:23:53,048 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:23:53,049 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:23:53,049 - root - INFO - Looking for user with username: admin
2025-12-04 14:23:53,050 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:23:53,051 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:23:53,051 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:23:53,058 - th_agenter.workflow_api - INFO - Updated workflow: qw3233 by user admin
2025-12-04 14:23:53,059 - root - INFO - Clearing user context
2025-12-04 14:24:09,610 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:24:09,610 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:24:09,611 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:24:09,611 - root - INFO - Clearing user context
2025-12-04 14:24:09,612 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:24:09,613 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:24:09,613 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:24:09,613 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:24:09,615 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:24:09,615 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:24:09,616 - root - INFO - Looking for user with username: admin
2025-12-04 14:24:09,617 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:24:09,618 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:24:09,618 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:24:09,635 - th_agenter.workflow_api - INFO - Updated workflow: qw3233 by user admin
2025-12-04 14:24:09,636 - root - INFO - Clearing user context
2025-12-04 14:24:11,846 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:24:11,847 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:24:11,847 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:24:11,847 - root - INFO - Clearing user context
2025-12-04 14:24:11,848 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:24:11,849 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:24:11,849 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:24:11,849 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:24:11,851 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:24:11,851 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:24:11,851 - root - INFO - Looking for user with username: admin
2025-12-04 14:24:11,852 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:24:11,852 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:24:11,852 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:24:11,868 - th_agenter.workflow_api - INFO - Updated workflow: qw3233 by user admin
2025-12-04 14:24:11,869 - root - INFO - Clearing user context
2025-12-04 14:24:15,771 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:24:15,771 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:24:15,771 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:24:15,771 - root - INFO - Clearing user context
2025-12-04 14:24:15,773 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:24:15,773 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:24:15,773 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:24:15,773 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:24:15,775 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:24:15,775 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:24:15,775 - root - INFO - Looking for user with username: admin
2025-12-04 14:24:15,776 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:24:15,776 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:24:15,776 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:24:15,779 - root - ERROR - Database session error: [{'type': 'enum', 'loc': ('body', 'definition', 'nodes', 10, 'type'), 'msg': "Input should be 'start', 'end', 'llm', 'condition', 'loop', 'code', 'http' or 'tool'", 'input': 'weather', 'ctx': {'expected': "'start', 'end', 'llm', 'condition', 'loop', 'code', 'http' or 'tool'"}}]
2025-12-04 14:24:15,780 - root - INFO - Clearing user context
2025-12-04 14:31:43,954 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:31:43,954 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:31:43,955 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:31:43,955 - root - INFO - Clearing user context
2025-12-04 14:31:43,956 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:31:43,956 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:31:43,956 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:31:43,957 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:31:43,958 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:31:43,958 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:31:43,959 - root - INFO - Looking for user with username: admin
2025-12-04 14:31:43,960 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:31:43,960 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:31:43,960 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:31:43,961 - root - ERROR - Database session error: [{'type': 'enum', 'loc': ('body', 'definition', 'nodes', 10, 'type'), 'msg': "Input should be 'start', 'end', 'llm', 'condition', 'loop', 'code', 'http' or 'tool'", 'input': 'weather', 'ctx': {'expected': "'start', 'end', 'llm', 'condition', 'loop', 'code', 'http' or 'tool'"}}]
2025-12-04 14:31:43,962 - root - INFO - Clearing user context
2025-12-04 14:32:20,663 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:32:20,664 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:20,664 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:32:20,664 - root - INFO - Clearing user context
2025-12-04 14:32:20,666 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:20,666 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:20,666 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:20,666 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:20,669 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:20,669 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:20,669 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:20,671 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:20,671 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:20,671 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:20,672 - root - ERROR - Database session error: [{'type': 'enum', 'loc': ('body', 'definition', 'nodes', 10, 'type'), 'msg': "Input should be 'start', 'end', 'llm', 'condition', 'loop', 'code', 'http' or 'tool'", 'input': 'weather', 'ctx': {'expected': "'start', 'end', 'llm', 'condition', 'loop', 'code', 'http' or 'tool'"}}]
2025-12-04 14:32:20,673 - root - INFO - Clearing user context
2025-12-04 14:32:25,181 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/2
2025-12-04 14:32:25,181 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/2 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:25,181 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/2
2025-12-04 14:32:25,181 - root - INFO - Clearing user context
2025-12-04 14:32:25,183 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:25,183 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:25,183 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:25,184 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:25,185 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:25,186 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:25,186 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:25,188 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:25,189 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:25,189 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:25,190 - root - ERROR - Database session error: [{'type': 'enum', 'loc': ('body', 'definition', 'nodes', 10, 'type'), 'msg': "Input should be 'start', 'end', 'llm', 'condition', 'loop', 'code', 'http' or 'tool'", 'input': 'weather', 'ctx': {'expected': "'start', 'end', 'llm', 'condition', 'loop', 'code', 'http' or 'tool'"}}]
2025-12-04 14:32:25,191 - root - INFO - Clearing user context
2025-12-04 14:32:36,767 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:32:36,767 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:36,767 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:32:36,767 - root - INFO - Clearing user context
2025-12-04 14:32:36,769 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:36,769 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:36,769 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:36,769 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:36,771 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:36,771 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:36,771 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:36,773 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:36,773 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:36,773 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:36,781 - root - INFO - Clearing user context
2025-12-04 14:32:37,707 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:32:37,708 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:37,708 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:32:37,708 - root - INFO - Clearing user context
2025-12-04 14:32:37,709 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:37,710 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:37,710 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:37,710 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:37,711 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:37,712 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:37,712 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:37,713 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:37,713 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:37,713 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:37,718 - root - INFO - Clearing user context
2025-12-04 14:32:37,726 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:32:37,727 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:37,727 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:32:37,727 - root - INFO - Clearing user context
2025-12-04 14:32:37,728 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:37,728 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:37,729 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:37,729 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:37,730 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:37,730 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:37,730 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:37,731 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:37,731 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:37,732 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:37,734 - root - INFO - Clearing user context
2025-12-04 14:32:37,744 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 14:32:37,745 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:37,745 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:32:37,745 - root - INFO - Clearing user context
2025-12-04 14:32:37,747 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:37,747 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:37,747 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:37,747 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:37,749 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:37,750 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:37,750 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:37,752 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:37,752 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:37,752 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:37,754 - root - INFO - Clearing user context
2025-12-04 14:32:39,843 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:32:39,843 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:39,843 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:32:39,843 - root - INFO - Clearing user context
2025-12-04 14:32:39,845 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:39,845 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:39,845 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:39,846 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:39,847 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:39,847 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:39,848 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:39,849 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:39,849 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:39,849 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:39,865 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:32:39,866 - root - INFO - Clearing user context
2025-12-04 14:32:42,232 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:32:42,233 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:42,233 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:32:42,233 - root - INFO - Clearing user context
2025-12-04 14:32:42,235 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:42,235 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:42,235 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:42,236 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:42,238 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:42,239 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:42,239 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:42,241 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:42,241 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:42,241 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:42,249 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:32:42,250 - root - INFO - Clearing user context
2025-12-04 14:32:54,152 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:32:54,152 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:54,153 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:32:54,153 - root - INFO - Clearing user context
2025-12-04 14:32:54,154 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:54,155 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:54,155 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:54,155 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:54,157 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:54,157 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:54,157 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:54,159 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:54,160 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:54,160 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:54,169 - root - INFO - Clearing user context
2025-12-04 14:32:55,078 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:32:55,079 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:55,079 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:32:55,079 - root - INFO - Clearing user context
2025-12-04 14:32:55,081 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:55,081 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:55,081 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:55,081 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:55,083 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:55,083 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:55,083 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:55,085 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:55,085 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:55,085 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:55,092 - root - INFO - Clearing user context
2025-12-04 14:32:55,099 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:32:55,100 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:55,100 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:32:55,100 - root - INFO - Clearing user context
2025-12-04 14:32:55,102 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:55,102 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:55,102 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:55,102 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:55,104 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:55,104 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:55,104 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:55,106 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:55,106 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:55,106 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:55,109 - root - INFO - Clearing user context
2025-12-04 14:32:55,119 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/8
2025-12-04 14:32:55,119 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/8 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:55,119 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/8
2025-12-04 14:32:55,120 - root - INFO - Clearing user context
2025-12-04 14:32:55,122 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:55,122 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:55,122 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:55,122 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:55,124 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:55,124 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:55,125 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:55,127 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:55,127 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:55,127 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:55,129 - root - INFO - Clearing user context
2025-12-04 14:32:56,813 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:32:56,813 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:56,814 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:32:56,814 - root - INFO - Clearing user context
2025-12-04 14:32:56,815 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:56,816 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:56,816 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:56,816 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:56,818 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:56,819 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:56,819 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:56,820 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:56,821 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:56,821 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:56,828 - root - INFO - Clearing user context
2025-12-04 14:32:57,970 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:32:57,970 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:57,970 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:32:57,970 - root - INFO - Clearing user context
2025-12-04 14:32:57,972 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:57,972 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:57,973 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:57,973 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:57,975 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:57,975 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:57,975 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:57,976 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:57,977 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:57,977 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:57,989 - root - INFO - Clearing user context
2025-12-04 14:32:58,003 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:32:58,004 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:58,004 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:32:58,004 - root - INFO - Clearing user context
2025-12-04 14:32:58,006 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:58,007 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:58,007 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:58,007 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:58,008 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:58,009 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:58,009 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:58,010 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:58,011 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:58,011 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:58,013 - root - INFO - Clearing user context
2025-12-04 14:32:58,021 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 14:32:58,021 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:32:58,021 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:32:58,022 - root - INFO - Clearing user context
2025-12-04 14:32:58,024 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:32:58,024 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:58,024 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:32:58,025 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:32:58,026 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:32:58,026 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:32:58,026 - root - INFO - Looking for user with username: admin
2025-12-04 14:32:58,028 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:32:58,029 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:32:58,029 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:32:58,031 - root - INFO - Clearing user context
2025-12-04 14:33:00,493 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:33:00,493 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:00,493 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:33:00,494 - root - INFO - Clearing user context
2025-12-04 14:33:00,495 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:00,495 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:00,495 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:00,495 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:00,497 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:00,497 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:00,497 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:00,498 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:00,499 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:00,499 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:00,505 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:33:00,506 - root - INFO - Clearing user context
2025-12-04 14:33:02,302 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:33:02,302 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:02,302 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:33:02,302 - root - INFO - Clearing user context
2025-12-04 14:33:02,304 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:02,304 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:02,308 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:02,309 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:02,310 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:02,311 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:02,311 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:02,312 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:02,313 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:02,313 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:02,319 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:33:02,320 - root - INFO - Clearing user context
2025-12-04 14:33:02,697 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:33:02,698 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:02,698 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:33:02,698 - root - INFO - Clearing user context
2025-12-04 14:33:02,699 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:02,700 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:02,700 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:02,700 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:02,701 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:02,702 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:02,703 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:02,705 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:02,705 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:02,705 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:02,711 - root - INFO - Clearing user context
2025-12-04 14:33:03,606 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:33:03,606 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:03,606 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:33:03,607 - root - INFO - Clearing user context
2025-12-04 14:33:03,608 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:03,608 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:03,609 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:03,609 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:03,611 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:03,611 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:03,612 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:03,613 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:03,613 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:03,614 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:03,623 - root - INFO - Clearing user context
2025-12-04 14:33:03,630 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:33:03,630 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:03,631 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:33:03,631 - root - INFO - Clearing user context
2025-12-04 14:33:03,633 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:03,633 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:03,633 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:03,634 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:03,635 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:03,636 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:03,636 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:03,638 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:03,638 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:03,639 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:03,642 - root - INFO - Clearing user context
2025-12-04 14:33:03,651 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 14:33:03,652 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:03,652 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:33:03,652 - root - INFO - Clearing user context
2025-12-04 14:33:03,654 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:03,654 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:03,654 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:03,655 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:03,656 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:03,657 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:03,657 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:03,658 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:03,658 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:03,658 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:03,661 - root - INFO - Clearing user context
2025-12-04 14:33:05,789 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:33:05,790 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:05,790 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:33:05,790 - root - INFO - Clearing user context
2025-12-04 14:33:05,792 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:05,792 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:05,792 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:05,792 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:05,794 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:05,794 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:05,794 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:05,795 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:05,795 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:05,795 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:05,801 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:33:05,802 - root - INFO - Clearing user context
2025-12-04 14:33:05,858 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:33:05,858 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:05,859 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:33:05,859 - root - INFO - Clearing user context
2025-12-04 14:33:05,860 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:05,860 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:05,861 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:05,861 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:05,862 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:05,862 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:05,863 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:05,864 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:05,864 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:05,864 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:05,870 - root - INFO - Clearing user context
2025-12-04 14:33:06,668 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:33:06,669 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:06,669 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:33:06,669 - root - INFO - Clearing user context
2025-12-04 14:33:06,670 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:06,671 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:06,671 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:06,671 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:06,673 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:06,673 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:06,674 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:06,675 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:06,675 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:06,675 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:06,682 - root - INFO - Clearing user context
2025-12-04 14:33:06,691 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:33:06,692 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:06,692 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:33:06,692 - root - INFO - Clearing user context
2025-12-04 14:33:06,693 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:06,693 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:06,694 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:06,694 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:06,695 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:06,695 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:06,695 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:06,696 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:06,696 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:06,696 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:06,699 - root - INFO - Clearing user context
2025-12-04 14:33:06,708 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/4
2025-12-04 14:33:06,709 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:06,709 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:33:06,709 - root - INFO - Clearing user context
2025-12-04 14:33:06,711 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:06,711 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:06,712 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:06,712 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:06,713 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:06,713 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:06,714 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:06,715 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:06,715 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:06,715 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:06,718 - root - INFO - Clearing user context
2025-12-04 14:33:08,426 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:33:08,426 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:08,426 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:33:08,426 - root - INFO - Clearing user context
2025-12-04 14:33:08,428 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:08,428 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:08,428 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:08,428 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:08,430 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:08,430 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:08,430 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:08,431 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:08,432 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:08,432 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:08,438 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:33:08,439 - root - INFO - Clearing user context
2025-12-04 14:33:11,646 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:33:11,646 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:11,646 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:33:11,647 - root - INFO - Clearing user context
2025-12-04 14:33:11,648 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:11,648 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:11,648 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:11,649 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:11,650 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:11,651 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:11,651 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:11,652 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:11,652 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:11,653 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:11,659 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:33:11,660 - root - INFO - Clearing user context
2025-12-04 14:33:33,112 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:33:33,112 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:33,112 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:33:33,113 - root - INFO - Clearing user context
2025-12-04 14:33:33,114 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:33,114 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:33,114 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:33,115 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:33,116 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:33,117 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:33,117 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:33,119 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:33,119 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:33,119 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:33,136 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:33:33,138 - root - INFO - Clearing user context
2025-12-04 14:33:35,869 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:33:35,869 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:35,870 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:33:35,870 - root - INFO - Clearing user context
2025-12-04 14:33:35,871 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:35,871 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:35,872 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:35,872 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:35,873 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:35,874 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:35,874 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:35,875 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:35,875 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:35,876 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:35,882 - root - INFO - Clearing user context
2025-12-04 14:33:37,254 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:33:37,255 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:37,255 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:33:37,255 - root - INFO - Clearing user context
2025-12-04 14:33:37,257 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:37,257 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:37,258 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:37,258 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:37,259 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:37,260 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:37,260 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:37,262 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:37,262 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:37,262 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:37,268 - root - INFO - Clearing user context
2025-12-04 14:33:37,275 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:33:37,276 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:37,276 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:33:37,276 - root - INFO - Clearing user context
2025-12-04 14:33:37,278 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:37,278 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:37,278 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:37,278 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:37,279 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:37,280 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:37,280 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:37,281 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:37,281 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:37,281 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:37,283 - root - INFO - Clearing user context
2025-12-04 14:33:37,291 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/5
2025-12-04 14:33:37,291 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:37,292 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:33:37,292 - root - INFO - Clearing user context
2025-12-04 14:33:37,294 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:37,294 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:37,294 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:37,294 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:37,296 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:37,296 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:37,296 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:37,298 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:37,299 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:37,299 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:37,301 - root - INFO - Clearing user context
2025-12-04 14:33:38,312 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:33:38,313 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:38,313 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:33:38,313 - root - INFO - Clearing user context
2025-12-04 14:33:38,315 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:38,315 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:38,315 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:38,315 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:38,317 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:38,317 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:38,318 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:38,319 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:38,319 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:38,319 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:38,330 - root - INFO - Clearing user context
2025-12-04 14:33:39,210 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:33:39,211 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:39,211 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:33:39,211 - root - INFO - Clearing user context
2025-12-04 14:33:39,213 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:39,213 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:39,213 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:39,213 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:39,215 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:39,215 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:39,216 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:39,217 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:39,217 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:39,217 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:39,223 - root - INFO - Clearing user context
2025-12-04 14:33:39,230 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:33:39,230 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:39,230 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:33:39,231 - root - INFO - Clearing user context
2025-12-04 14:33:39,232 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:39,232 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:39,232 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:39,232 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:39,233 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:39,234 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:39,234 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:39,235 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:39,235 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:39,235 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:39,239 - root - INFO - Clearing user context
2025-12-04 14:33:39,247 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/4
2025-12-04 14:33:39,247 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:39,247 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:33:39,248 - root - INFO - Clearing user context
2025-12-04 14:33:39,250 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:39,250 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:39,250 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:39,251 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:39,252 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:39,252 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:39,252 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:39,254 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:39,254 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:39,254 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:39,257 - root - INFO - Clearing user context
2025-12-04 14:33:41,227 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:33:41,227 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:33:41,227 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:33:41,227 - root - INFO - Clearing user context
2025-12-04 14:33:41,228 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:33:41,229 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:41,229 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:33:41,229 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:33:41,230 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:33:41,231 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:33:41,231 - root - INFO - Looking for user with username: admin
2025-12-04 14:33:41,232 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:33:41,232 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:33:41,233 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:33:41,238 - root - INFO - Clearing user context
2025-12-04 14:34:36,973 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:34:36,973 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:34:36,973 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:34:36,973 - root - INFO - Clearing user context
2025-12-04 14:34:36,976 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:34:36,976 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:34:36,976 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:34:36,976 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:34:36,978 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:34:36,978 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:34:36,979 - root - INFO - Looking for user with username: admin
2025-12-04 14:34:36,980 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:34:36,980 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:34:36,981 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:34:36,988 - root - INFO - Clearing user context
2025-12-04 14:34:36,999 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:34:36,999 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:34:36,999 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:34:37,000 - root - INFO - Clearing user context
2025-12-04 14:34:37,002 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:34:37,002 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:34:37,003 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:34:37,003 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:34:37,004 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:34:37,005 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:34:37,005 - root - INFO - Looking for user with username: admin
2025-12-04 14:34:37,006 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:34:37,007 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:34:37,007 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:34:37,011 - root - INFO - Clearing user context
2025-12-04 14:34:37,019 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/4
2025-12-04 14:34:37,019 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:34:37,019 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:34:37,020 - root - INFO - Clearing user context
2025-12-04 14:34:37,021 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:34:37,021 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:34:37,021 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:34:37,022 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:34:37,023 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:34:37,024 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:34:37,024 - root - INFO - Looking for user with username: admin
2025-12-04 14:34:37,026 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:34:37,026 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:34:37,026 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:34:37,029 - root - INFO - Clearing user context
2025-12-04 14:34:44,248 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:34:44,248 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:34:44,249 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:34:44,249 - root - INFO - Clearing user context
2025-12-04 14:34:44,250 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:34:44,250 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:34:44,251 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:34:44,251 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:34:44,253 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:34:44,253 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:34:44,253 - root - INFO - Looking for user with username: admin
2025-12-04 14:34:44,254 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:34:44,255 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:34:44,255 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:34:44,272 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:34:44,273 - root - INFO - Clearing user context
2025-12-04 14:35:00,349 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:00,349 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:00,350 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:00,350 - root - INFO - Clearing user context
2025-12-04 14:35:00,351 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:00,352 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:00,352 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:00,352 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:00,354 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:00,355 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:00,355 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:00,356 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:00,356 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:00,357 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:00,362 - root - INFO - Clearing user context
2025-12-04 14:35:00,385 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:35:00,386 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:00,386 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:35:00,386 - root - INFO - Clearing user context
2025-12-04 14:35:00,387 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:00,387 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:00,388 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:00,388 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:00,389 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:00,389 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:00,390 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:00,391 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:00,391 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:00,391 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:00,394 - root - INFO - Clearing user context
2025-12-04 14:35:00,400 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/4
2025-12-04 14:35:00,400 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:00,401 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:35:00,401 - root - INFO - Clearing user context
2025-12-04 14:35:00,402 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:00,402 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:00,402 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:00,402 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:00,403 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:00,404 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:00,404 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:00,405 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:00,405 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:00,405 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:00,407 - root - INFO - Clearing user context
2025-12-04 14:35:13,567 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:13,568 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:13,568 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:13,568 - root - INFO - Clearing user context
2025-12-04 14:35:13,570 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:13,570 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:13,570 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:13,571 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:13,572 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:13,572 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:13,572 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:13,574 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:13,574 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:13,574 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:13,582 - root - INFO - Clearing user context
2025-12-04 14:35:14,492 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:14,492 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:14,493 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:14,493 - root - INFO - Clearing user context
2025-12-04 14:35:14,494 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:14,495 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:14,495 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:14,495 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:14,496 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:14,497 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:14,497 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:14,498 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:14,499 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:14,499 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:14,506 - root - INFO - Clearing user context
2025-12-04 14:35:14,513 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:35:14,514 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:14,514 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:35:14,514 - root - INFO - Clearing user context
2025-12-04 14:35:14,515 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:14,516 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:14,516 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:14,516 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:14,517 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:14,518 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:14,518 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:14,519 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:14,520 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:14,520 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:14,523 - root - INFO - Clearing user context
2025-12-04 14:35:14,533 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/8
2025-12-04 14:35:14,533 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/8 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:14,533 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/8
2025-12-04 14:35:14,533 - root - INFO - Clearing user context
2025-12-04 14:35:14,535 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:14,536 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:14,536 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:14,536 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:14,538 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:14,538 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:14,538 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:14,540 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:14,540 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:14,540 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:14,542 - root - INFO - Clearing user context
2025-12-04 14:35:15,825 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:15,825 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:15,826 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:15,826 - root - INFO - Clearing user context
2025-12-04 14:35:15,827 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:15,827 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:15,828 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:15,828 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:15,829 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:15,830 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:15,830 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:15,831 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:15,832 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:15,832 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:15,838 - root - INFO - Clearing user context
2025-12-04 14:35:16,606 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:16,607 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:16,607 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:16,607 - root - INFO - Clearing user context
2025-12-04 14:35:16,609 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:16,609 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:16,609 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:16,609 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:16,611 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:16,611 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:16,612 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:16,613 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:16,614 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:16,614 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:16,624 - root - INFO - Clearing user context
2025-12-04 14:35:16,632 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:35:16,633 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:16,633 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:35:16,633 - root - INFO - Clearing user context
2025-12-04 14:35:16,634 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:16,635 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:16,635 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:16,635 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:16,637 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:16,638 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:16,638 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:16,640 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:16,640 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:16,640 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:16,645 - root - INFO - Clearing user context
2025-12-04 14:35:16,652 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 14:35:16,652 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:16,653 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:35:16,653 - root - INFO - Clearing user context
2025-12-04 14:35:16,655 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:16,655 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:16,655 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:16,656 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:16,657 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:16,658 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:16,658 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:16,660 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:16,661 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:16,661 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:16,664 - root - INFO - Clearing user context
2025-12-04 14:35:17,431 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:17,431 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:17,432 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:17,432 - root - INFO - Clearing user context
2025-12-04 14:35:17,433 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:17,433 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:17,434 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:17,434 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:17,435 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:17,435 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:17,435 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:17,437 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:17,437 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:17,438 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:17,445 - root - INFO - Clearing user context
2025-12-04 14:35:17,473 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:35:17,473 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:17,474 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:35:17,474 - root - INFO - Clearing user context
2025-12-04 14:35:17,476 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:17,476 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:17,476 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:17,476 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:17,477 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:17,478 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:17,478 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:17,479 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:17,479 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:17,480 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:17,482 - root - INFO - Clearing user context
2025-12-04 14:35:17,492 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 14:35:17,492 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:17,492 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:35:17,493 - root - INFO - Clearing user context
2025-12-04 14:35:17,494 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:17,494 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:17,494 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:17,494 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:17,496 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:17,496 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:17,497 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:17,498 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:17,498 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:17,498 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:17,500 - root - INFO - Clearing user context
2025-12-04 14:35:18,139 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:18,139 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:18,140 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:18,140 - root - INFO - Clearing user context
2025-12-04 14:35:18,141 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:18,142 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:18,142 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:18,142 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:18,144 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:18,144 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:18,144 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:18,145 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:18,146 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:18,146 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:18,152 - root - INFO - Clearing user context
2025-12-04 14:35:18,893 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:18,894 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:18,895 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:18,896 - root - INFO - Clearing user context
2025-12-04 14:35:18,898 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:18,899 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:18,899 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:18,899 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:18,901 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:18,902 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:18,902 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:18,903 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:18,904 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:18,904 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:18,914 - root - INFO - Clearing user context
2025-12-04 14:35:18,925 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:35:18,925 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:18,925 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:35:18,926 - root - INFO - Clearing user context
2025-12-04 14:35:18,927 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:18,928 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:18,928 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:18,928 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:18,930 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:18,931 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:18,931 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:18,932 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:18,933 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:18,933 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:18,937 - root - INFO - Clearing user context
2025-12-04 14:35:18,947 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/4
2025-12-04 14:35:18,947 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:18,948 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:35:18,948 - root - INFO - Clearing user context
2025-12-04 14:35:18,949 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:18,950 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:18,950 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:18,950 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:18,952 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:18,952 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:18,952 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:18,954 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:18,955 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:18,955 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:18,958 - root - INFO - Clearing user context
2025-12-04 14:35:24,108 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:35:24,109 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:24,109 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:35:24,109 - root - INFO - Clearing user context
2025-12-04 14:35:24,111 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:24,111 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:24,112 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:24,112 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:24,115 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:24,115 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:24,115 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:24,117 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:24,117 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:24,117 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:24,126 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:35:24,128 - root - INFO - Clearing user context
2025-12-04 14:35:28,778 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:28,779 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:28,779 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:28,779 - root - INFO - Clearing user context
2025-12-04 14:35:28,781 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:28,781 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:28,781 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:28,781 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:28,783 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:28,783 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:28,783 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:28,785 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:28,785 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:28,785 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:28,792 - root - INFO - Clearing user context
2025-12-04 14:35:29,636 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:29,636 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:29,637 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:29,637 - root - INFO - Clearing user context
2025-12-04 14:35:29,638 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:29,639 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:29,639 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:29,639 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:29,641 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:29,641 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:29,641 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:29,643 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:29,643 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:29,643 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:29,649 - root - INFO - Clearing user context
2025-12-04 14:35:29,656 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:35:29,657 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:29,657 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:35:29,657 - root - INFO - Clearing user context
2025-12-04 14:35:29,659 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:29,659 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:29,660 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:29,660 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:29,662 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:29,663 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:29,663 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:29,666 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:29,669 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:29,669 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:29,673 - root - INFO - Clearing user context
2025-12-04 14:35:29,684 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 14:35:29,684 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:29,685 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:35:29,685 - root - INFO - Clearing user context
2025-12-04 14:35:29,687 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:29,688 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:29,688 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:29,688 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:29,690 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:29,691 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:29,691 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:29,693 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:29,693 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:29,694 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:29,697 - root - INFO - Clearing user context
2025-12-04 14:35:31,809 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:31,809 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:31,810 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:31,810 - root - INFO - Clearing user context
2025-12-04 14:35:31,811 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:31,812 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:31,812 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:31,812 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:31,814 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:31,814 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:31,814 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:31,815 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:31,815 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:31,816 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:31,823 - root - INFO - Clearing user context
2025-12-04 14:35:32,636 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:35:32,636 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:32,636 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:35:32,636 - root - INFO - Clearing user context
2025-12-04 14:35:32,638 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:32,638 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:32,638 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:32,639 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:32,640 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:32,640 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:32,641 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:32,642 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:32,642 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:32,642 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:32,650 - root - INFO - Clearing user context
2025-12-04 14:35:32,657 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:35:32,658 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:32,658 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:35:32,658 - root - INFO - Clearing user context
2025-12-04 14:35:32,660 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:32,660 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:32,661 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:32,661 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:32,662 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:32,663 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:32,663 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:32,664 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:32,665 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:32,665 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:32,668 - root - INFO - Clearing user context
2025-12-04 14:35:32,678 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/4
2025-12-04 14:35:32,679 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:32,679 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:35:32,679 - root - INFO - Clearing user context
2025-12-04 14:35:32,681 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:32,681 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:32,682 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:32,682 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:32,683 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:32,684 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:32,684 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:32,686 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:32,686 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:32,687 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:32,689 - root - INFO - Clearing user context
2025-12-04 14:35:39,433 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:35:39,433 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:39,434 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:35:39,434 - root - INFO - Clearing user context
2025-12-04 14:35:39,435 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:39,435 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:39,435 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:39,435 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:39,437 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:39,437 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:39,437 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:39,439 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:39,439 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:39,439 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:39,456 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:35:39,457 - root - INFO - Clearing user context
2025-12-04 14:35:50,180 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:35:50,180 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:50,181 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:35:50,181 - root - INFO - Clearing user context
2025-12-04 14:35:50,182 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:50,182 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:50,183 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:50,183 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:50,184 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:50,185 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:50,185 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:50,186 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:50,186 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:50,186 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:50,192 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:35:50,193 - root - INFO - Clearing user context
2025-12-04 14:35:53,210 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:35:53,210 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:53,210 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:35:53,211 - root - INFO - Clearing user context
2025-12-04 14:35:53,212 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:53,212 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:53,212 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:53,213 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:53,214 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:53,214 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:53,214 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:53,216 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:53,216 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:53,216 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:53,222 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:35:53,223 - root - INFO - Clearing user context
2025-12-04 14:35:56,611 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:35:56,611 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:56,612 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:35:56,612 - root - INFO - Clearing user context
2025-12-04 14:35:56,613 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:56,614 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:56,614 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:56,614 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:56,616 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:56,616 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:56,617 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:56,618 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:56,618 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:56,619 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:56,635 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:35:56,636 - root - INFO - Clearing user context
2025-12-04 14:35:58,898 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:35:58,898 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:35:58,899 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:35:58,899 - root - INFO - Clearing user context
2025-12-04 14:35:58,900 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:35:58,900 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:58,900 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:35:58,901 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:35:58,902 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:35:58,902 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:35:58,902 - root - INFO - Looking for user with username: admin
2025-12-04 14:35:58,903 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:35:58,904 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:35:58,904 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:35:58,911 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:35:58,913 - root - INFO - Clearing user context
2025-12-04 14:36:03,187 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:36:03,188 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:03,188 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:36:03,188 - root - INFO - Clearing user context
2025-12-04 14:36:03,190 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:03,190 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:03,190 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:03,191 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:03,193 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:03,193 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:03,194 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:03,195 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:03,196 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:03,196 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:03,203 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:36:03,205 - root - INFO - Clearing user context
2025-12-04 14:36:06,891 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:36:06,891 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:06,892 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:36:06,892 - root - INFO - Clearing user context
2025-12-04 14:36:06,893 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:06,893 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:06,894 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:06,894 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:06,895 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:06,896 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:06,896 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:06,897 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:06,898 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:06,898 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:06,914 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:36:06,915 - root - INFO - Clearing user context
2025-12-04 14:36:13,633 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:36:13,633 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:13,633 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:36:13,634 - root - INFO - Clearing user context
2025-12-04 14:36:13,635 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:13,635 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:13,635 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:13,636 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:13,637 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:13,638 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:13,638 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:13,640 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:13,640 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:13,640 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:13,658 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:36:13,660 - root - INFO - Clearing user context
2025-12-04 14:36:21,352 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:36:21,352 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:21,352 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:36:21,353 - root - INFO - Clearing user context
2025-12-04 14:36:21,354 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:21,354 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:21,354 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:21,354 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:21,356 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:21,356 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:21,356 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:21,357 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:21,358 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:21,358 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:21,373 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:36:21,375 - root - INFO - Clearing user context
2025-12-04 14:36:26,419 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:36:26,419 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:26,420 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:36:26,420 - root - INFO - Clearing user context
2025-12-04 14:36:26,421 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:26,426 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:26,426 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:26,426 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:26,428 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:26,429 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:26,429 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:26,431 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:26,431 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:26,432 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:26,439 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:36:26,440 - root - INFO - Clearing user context
2025-12-04 14:36:36,411 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:36:36,412 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:36,412 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:36:36,412 - root - INFO - Clearing user context
2025-12-04 14:36:36,413 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:36,414 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:36,414 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:36,414 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:36,415 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:36,416 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:36,416 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:36,417 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:36,417 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:36,417 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:36,423 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:36:36,425 - root - INFO - Clearing user context
2025-12-04 14:36:38,414 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:36:38,414 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:38,414 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:36:38,415 - root - INFO - Clearing user context
2025-12-04 14:36:38,416 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:38,416 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:38,417 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:38,417 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:38,420 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:38,420 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:38,420 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:38,422 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:38,422 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:38,422 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:38,428 - root - INFO - Clearing user context
2025-12-04 14:36:39,360 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:36:39,361 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:39,361 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:36:39,361 - root - INFO - Clearing user context
2025-12-04 14:36:39,363 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:39,363 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:39,363 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:39,363 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:39,365 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:39,365 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:39,365 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:39,366 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:39,367 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:39,367 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:39,376 - root - INFO - Clearing user context
2025-12-04 14:36:39,383 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:36:39,383 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:39,384 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:36:39,384 - root - INFO - Clearing user context
2025-12-04 14:36:39,385 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:39,385 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:39,386 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:39,386 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:39,387 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:39,387 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:39,388 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:39,389 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:39,389 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:39,389 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:39,392 - root - INFO - Clearing user context
2025-12-04 14:36:39,399 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/4
2025-12-04 14:36:39,399 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:39,399 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:36:39,399 - root - INFO - Clearing user context
2025-12-04 14:36:39,401 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:39,401 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:39,401 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:39,401 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:39,402 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:39,403 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:39,403 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:39,405 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:39,405 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:39,405 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:39,408 - root - INFO - Clearing user context
2025-12-04 14:36:41,348 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:36:41,348 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:41,349 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:36:41,349 - root - INFO - Clearing user context
2025-12-04 14:36:41,350 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:41,350 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:41,350 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:41,351 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:41,352 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:41,352 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:41,352 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:41,353 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:41,354 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:41,354 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:41,369 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:36:41,371 - root - INFO - Clearing user context
2025-12-04 14:36:41,840 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:36:41,841 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:41,841 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:36:41,841 - root - INFO - Clearing user context
2025-12-04 14:36:41,843 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:41,843 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:41,843 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:41,843 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:41,845 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:41,845 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:41,845 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:41,847 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:41,847 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:41,847 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:41,853 - root - INFO - Clearing user context
2025-12-04 14:36:42,758 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:36:42,759 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:42,759 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:36:42,759 - root - INFO - Clearing user context
2025-12-04 14:36:42,760 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:42,760 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:42,761 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:42,761 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:42,763 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:42,763 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:42,763 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:42,764 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:42,765 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:42,765 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:42,771 - root - INFO - Clearing user context
2025-12-04 14:36:42,780 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:36:42,781 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:42,781 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:36:42,781 - root - INFO - Clearing user context
2025-12-04 14:36:42,782 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:42,783 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:42,783 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:42,783 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:42,784 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:42,785 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:42,785 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:42,786 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:42,786 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:42,786 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:42,788 - root - INFO - Clearing user context
2025-12-04 14:36:42,797 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/5
2025-12-04 14:36:42,797 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:42,797 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:36:42,798 - root - INFO - Clearing user context
2025-12-04 14:36:42,799 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:42,800 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:42,800 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:42,800 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:42,801 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:42,802 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:42,802 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:42,803 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:42,803 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:42,803 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:42,806 - root - INFO - Clearing user context
2025-12-04 14:36:45,510 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:36:45,510 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:45,511 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:36:45,511 - root - INFO - Clearing user context
2025-12-04 14:36:45,513 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:45,513 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:45,514 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:45,514 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:45,515 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:45,516 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:45,516 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:45,517 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:45,517 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:45,518 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:45,525 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:36:45,526 - root - INFO - Clearing user context
2025-12-04 14:36:48,047 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:36:48,047 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:48,048 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:36:48,048 - root - INFO - Clearing user context
2025-12-04 14:36:48,049 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:48,049 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:48,050 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:48,050 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:48,051 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:48,052 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:48,052 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:48,053 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:48,053 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:48,053 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:48,070 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:36:48,071 - root - INFO - Clearing user context
2025-12-04 14:36:52,403 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:36:52,403 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:52,403 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:36:52,404 - root - INFO - Clearing user context
2025-12-04 14:36:52,405 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:52,405 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:52,405 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:52,405 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:52,407 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:52,407 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:52,407 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:52,408 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:52,408 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:52,409 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:52,421 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:36:52,422 - root - INFO - Clearing user context
2025-12-04 14:36:55,635 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:36:55,635 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:55,635 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:36:55,636 - root - INFO - Clearing user context
2025-12-04 14:36:55,637 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:55,637 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:55,638 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:55,638 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:55,639 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:55,640 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:55,640 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:55,641 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:55,641 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:55,641 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:55,650 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:36:55,651 - root - INFO - Clearing user context
2025-12-04 14:36:58,967 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:36:58,968 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:36:58,968 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:36:58,968 - root - INFO - Clearing user context
2025-12-04 14:36:58,969 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:36:58,970 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:58,970 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:36:58,970 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:36:58,972 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:36:58,972 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:36:58,972 - root - INFO - Looking for user with username: admin
2025-12-04 14:36:58,973 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:36:58,973 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:36:58,974 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:36:58,981 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:36:58,982 - root - INFO - Clearing user context
2025-12-04 14:37:11,007 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:37:11,007 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:11,007 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:37:11,008 - root - INFO - Clearing user context
2025-12-04 14:37:11,009 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:11,009 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:11,009 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:11,009 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:11,011 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:11,011 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:11,011 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:11,013 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:11,013 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:11,013 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:11,020 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:37:11,021 - root - INFO - Clearing user context
2025-12-04 14:37:17,724 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:37:17,724 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:17,724 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:37:17,725 - root - INFO - Clearing user context
2025-12-04 14:37:17,726 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:17,726 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:17,726 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:17,727 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:17,728 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:17,729 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:17,729 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:17,731 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:17,732 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:17,732 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:17,748 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:37:17,749 - root - INFO - Clearing user context
2025-12-04 14:37:28,102 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:37:28,102 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:28,102 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:37:28,103 - root - INFO - Clearing user context
2025-12-04 14:37:28,104 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:28,104 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:28,104 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:28,104 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:28,106 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:28,106 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:28,106 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:28,107 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:28,107 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:28,107 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:28,114 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:37:28,114 - root - INFO - Clearing user context
2025-12-04 14:37:29,741 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:37:29,741 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:29,742 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:37:29,742 - root - INFO - Clearing user context
2025-12-04 14:37:29,743 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:29,743 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:29,743 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:29,744 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:29,745 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:29,746 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:29,746 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:29,747 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:29,747 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:29,747 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:29,754 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:37:29,755 - root - INFO - Clearing user context
2025-12-04 14:37:34,915 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:37:34,916 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:34,916 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:37:34,916 - root - INFO - Clearing user context
2025-12-04 14:37:34,917 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:34,918 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:34,918 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:34,918 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:34,919 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:34,920 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:34,920 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:34,921 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:34,921 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:34,921 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:34,936 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:37:34,937 - root - INFO - Clearing user context
2025-12-04 14:37:37,250 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:37:37,250 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:37,250 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:37:37,250 - root - INFO - Clearing user context
2025-12-04 14:37:37,252 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:37,252 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:37,252 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:37,253 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:37,254 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:37,254 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:37,255 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:37,256 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:37,256 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:37,256 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:37,263 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:37:37,264 - root - INFO - Clearing user context
2025-12-04 14:37:42,173 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:37:42,173 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:42,173 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:37:42,173 - root - INFO - Clearing user context
2025-12-04 14:37:42,175 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:42,175 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:42,175 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:42,175 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:42,176 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:42,177 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:42,177 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:42,178 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:42,178 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:42,178 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:42,195 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:37:42,197 - root - INFO - Clearing user context
2025-12-04 14:37:45,619 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:37:45,619 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:45,620 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:37:45,620 - root - INFO - Clearing user context
2025-12-04 14:37:45,621 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:45,621 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:45,622 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:45,622 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:45,623 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:45,624 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:45,624 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:45,625 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:45,625 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:45,625 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:45,641 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:37:45,642 - root - INFO - Clearing user context
2025-12-04 14:37:50,501 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/5
2025-12-04 14:37:50,501 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:50,501 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:37:50,502 - root - INFO - Clearing user context
2025-12-04 14:37:50,503 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:50,503 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:50,503 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:50,503 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:50,505 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:50,505 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:50,505 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:50,507 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:50,507 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:50,507 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:50,515 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 - 副本 by user admin
2025-12-04 14:37:50,516 - root - INFO - Clearing user context
2025-12-04 14:37:57,432 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:37:57,433 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:57,433 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:37:57,433 - root - INFO - Clearing user context
2025-12-04 14:37:57,434 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:57,434 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:57,434 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:57,435 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:57,436 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:57,436 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:57,436 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:57,437 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:57,437 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:57,437 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:57,442 - root - INFO - Clearing user context
2025-12-04 14:37:57,451 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:37:57,452 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:57,452 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:37:57,452 - root - INFO - Clearing user context
2025-12-04 14:37:57,453 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:57,453 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:57,453 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:57,454 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:57,455 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:57,455 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:57,455 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:57,456 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:57,456 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:57,456 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:57,458 - root - INFO - Clearing user context
2025-12-04 14:37:57,467 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/5
2025-12-04 14:37:57,467 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/5 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:37:57,468 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/5
2025-12-04 14:37:57,468 - root - INFO - Clearing user context
2025-12-04 14:37:57,469 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:37:57,469 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:57,470 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:37:57,470 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:37:57,472 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:37:57,472 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:37:57,472 - root - INFO - Looking for user with username: admin
2025-12-04 14:37:57,474 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:37:57,474 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:37:57,474 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:37:57,477 - root - INFO - Clearing user context
2025-12-04 14:38:00,991 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:38:00,991 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:00,991 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:38:00,992 - root - INFO - Clearing user context
2025-12-04 14:38:00,993 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:00,994 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:00,994 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:00,994 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:00,996 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:00,996 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:00,997 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:00,998 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:00,999 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:00,999 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:01,009 - root - INFO - Clearing user context
2025-12-04 14:38:03,751 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:38:03,751 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:03,752 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:38:03,752 - root - INFO - Clearing user context
2025-12-04 14:38:03,753 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:03,753 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:03,754 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:03,754 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:03,755 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:03,756 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:03,757 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:03,758 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:03,759 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:03,759 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:03,766 - root - INFO - Clearing user context
2025-12-04 14:38:03,774 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:38:03,774 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:03,774 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:38:03,775 - root - INFO - Clearing user context
2025-12-04 14:38:03,776 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:03,776 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:03,777 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:03,777 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:03,778 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:03,779 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:03,779 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:03,782 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:03,782 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:03,782 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:03,786 - root - INFO - Clearing user context
2025-12-04 14:38:03,793 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/4
2025-12-04 14:38:03,794 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:03,794 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:38:03,794 - root - INFO - Clearing user context
2025-12-04 14:38:03,796 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:03,796 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:03,796 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:03,796 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:03,798 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:03,799 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:03,799 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:03,801 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:03,801 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:03,802 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:03,804 - root - INFO - Clearing user context
2025-12-04 14:38:05,861 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:38:05,861 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:05,861 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:38:05,862 - root - INFO - Clearing user context
2025-12-04 14:38:05,863 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:05,863 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:05,864 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:05,864 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:05,865 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:05,866 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:05,866 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:05,867 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:05,867 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:05,867 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:05,874 - root - INFO - Clearing user context
2025-12-04 14:38:07,092 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:38:07,093 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:07,093 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:38:07,093 - root - INFO - Clearing user context
2025-12-04 14:38:07,096 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:07,096 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:07,096 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:07,096 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:07,098 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:07,098 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:07,099 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:07,100 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:07,100 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:07,100 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:07,108 - root - INFO - Clearing user context
2025-12-04 14:38:07,118 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:38:07,118 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:07,118 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:38:07,118 - root - INFO - Clearing user context
2025-12-04 14:38:07,120 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:07,120 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:07,120 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:07,120 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:07,122 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:07,122 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:07,122 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:07,123 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:07,124 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:07,124 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:07,126 - root - INFO - Clearing user context
2025-12-04 14:38:07,135 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 14:38:07,136 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:07,136 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:38:07,136 - root - INFO - Clearing user context
2025-12-04 14:38:07,138 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:07,138 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:07,139 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:07,139 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:07,140 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:07,140 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:07,140 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:07,142 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:07,142 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:07,142 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:07,144 - root - INFO - Clearing user context
2025-12-04 14:38:10,314 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:38:10,314 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:10,314 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:38:10,315 - root - INFO - Clearing user context
2025-12-04 14:38:10,316 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:10,317 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:10,317 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:10,317 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:10,319 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:10,319 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:10,320 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:10,321 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:10,321 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:10,321 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:10,329 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:38:10,330 - root - INFO - Clearing user context
2025-12-04 14:38:11,872 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:38:11,872 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:11,872 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:38:11,872 - root - INFO - Clearing user context
2025-12-04 14:38:11,874 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:11,874 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:11,874 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:11,874 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:11,876 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:11,876 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:11,877 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:11,878 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:11,878 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:11,878 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:11,885 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:38:11,886 - root - INFO - Clearing user context
2025-12-04 14:38:18,109 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:38:18,110 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:18,110 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:38:18,110 - root - INFO - Clearing user context
2025-12-04 14:38:18,111 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:18,112 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:18,112 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:18,112 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:18,114 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:18,114 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:18,114 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:18,115 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:18,115 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:18,116 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:18,123 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:38:18,124 - root - INFO - Clearing user context
2025-12-04 14:38:20,386 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:38:20,386 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:20,386 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:38:20,386 - root - INFO - Clearing user context
2025-12-04 14:38:20,388 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:20,388 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:20,388 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:20,388 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:20,390 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:20,390 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:20,390 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:20,391 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:20,391 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:20,392 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:20,408 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:38:20,409 - root - INFO - Clearing user context
2025-12-04 14:38:26,002 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:38:26,003 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:38:26,003 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:38:26,003 - root - INFO - Clearing user context
2025-12-04 14:38:26,005 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:38:26,005 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:26,005 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:38:26,005 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:38:26,007 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:38:26,007 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:38:26,007 - root - INFO - Looking for user with username: admin
2025-12-04 14:38:26,009 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:38:26,009 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:38:26,009 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:38:26,026 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:38:26,027 - root - INFO - Clearing user context
2025-12-04 14:39:19,598 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:39:19,599 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:19,599 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:39:19,599 - root - INFO - Clearing user context
2025-12-04 14:39:19,600 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:19,601 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:19,601 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:19,601 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:19,603 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:19,604 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:19,604 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:19,605 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:19,605 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:19,606 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:19,617 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:39:19,619 - root - INFO - Clearing user context
2025-12-04 14:39:24,135 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:39:24,136 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:24,136 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:39:24,136 - root - INFO - Clearing user context
2025-12-04 14:39:24,138 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:24,138 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:24,138 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:24,139 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:24,140 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:24,141 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:24,141 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:24,143 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:24,143 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:24,143 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:24,152 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:39:24,154 - root - INFO - Clearing user context
2025-12-04 14:39:26,208 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:39:26,208 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:26,209 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:39:26,209 - root - INFO - Clearing user context
2025-12-04 14:39:26,210 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:26,210 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:26,211 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:26,211 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:26,213 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:26,213 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:26,213 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:26,215 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:26,215 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:26,215 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:26,223 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:39:26,224 - root - INFO - Clearing user context
2025-12-04 14:39:28,072 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:39:28,072 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:28,073 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:39:28,073 - root - INFO - Clearing user context
2025-12-04 14:39:28,074 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:28,075 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:28,075 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:28,075 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:28,077 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:28,078 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:28,078 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:28,079 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:28,080 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:28,080 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:28,088 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:39:28,089 - root - INFO - Clearing user context
2025-12-04 14:39:31,310 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:39:31,311 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:31,311 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:39:31,311 - root - INFO - Clearing user context
2025-12-04 14:39:31,313 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:31,313 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:31,313 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:31,313 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:31,315 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:31,316 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:31,316 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:31,317 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:31,318 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:31,318 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:31,327 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:39:31,328 - root - INFO - Clearing user context
2025-12-04 14:39:35,917 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:39:35,917 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:35,918 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:39:35,918 - root - INFO - Clearing user context
2025-12-04 14:39:35,919 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:35,919 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:35,919 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:35,920 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:35,921 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:35,921 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:35,922 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:35,922 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:35,923 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:35,923 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:35,929 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:39:35,930 - root - INFO - Clearing user context
2025-12-04 14:39:37,771 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:39:37,771 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:37,771 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:39:37,771 - root - INFO - Clearing user context
2025-12-04 14:39:37,773 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:37,773 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:37,773 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:37,773 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:37,774 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:37,775 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:37,775 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:37,776 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:37,776 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:37,776 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:37,782 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:39:37,783 - root - INFO - Clearing user context
2025-12-04 14:39:40,220 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:39:40,220 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:40,221 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:39:40,221 - root - INFO - Clearing user context
2025-12-04 14:39:40,222 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:40,222 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:40,223 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:40,223 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:40,224 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:40,225 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:40,225 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:40,226 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:40,226 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:40,226 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:40,233 - root - INFO - Clearing user context
2025-12-04 14:39:41,144 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:39:41,144 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:41,144 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:39:41,145 - root - INFO - Clearing user context
2025-12-04 14:39:41,146 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:41,147 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:41,147 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:41,147 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:41,149 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:41,149 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:41,150 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:41,151 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:41,151 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:41,152 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:41,156 - root - INFO - Clearing user context
2025-12-04 14:39:41,165 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:39:41,165 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:41,166 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:39:41,166 - root - INFO - Clearing user context
2025-12-04 14:39:41,168 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:41,169 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:41,169 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:41,169 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:41,171 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:41,171 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:41,171 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:41,172 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:41,173 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:41,173 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:41,175 - root - INFO - Clearing user context
2025-12-04 14:39:41,184 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/4
2025-12-04 14:39:41,184 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:41,185 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:39:41,185 - root - INFO - Clearing user context
2025-12-04 14:39:41,187 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:41,187 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:41,187 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:41,187 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:41,189 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:41,189 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:41,189 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:41,191 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:41,191 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:41,192 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:41,194 - root - INFO - Clearing user context
2025-12-04 14:39:45,242 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:39:45,242 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:45,243 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:39:45,243 - root - INFO - Clearing user context
2025-12-04 14:39:45,244 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:45,244 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:45,244 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:45,245 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:45,246 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:45,246 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:45,246 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:45,247 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:45,248 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:45,248 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:45,262 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:39:45,263 - root - INFO - Clearing user context
2025-12-04 14:39:45,854 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:39:45,855 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:45,855 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:39:45,855 - root - INFO - Clearing user context
2025-12-04 14:39:45,856 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:45,857 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:45,857 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:45,857 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:45,859 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:45,859 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:45,859 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:45,860 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:45,860 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:45,861 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:45,867 - root - INFO - Clearing user context
2025-12-04 14:39:46,893 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:39:46,894 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:46,894 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:39:46,894 - root - INFO - Clearing user context
2025-12-04 14:39:46,896 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:46,896 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:46,896 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:46,896 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:46,898 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:46,899 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:46,900 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:46,902 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:46,903 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:46,903 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:46,913 - root - INFO - Clearing user context
2025-12-04 14:39:46,926 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:39:46,926 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:46,926 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:39:46,926 - root - INFO - Clearing user context
2025-12-04 14:39:46,928 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:46,928 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:46,928 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:46,928 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:46,930 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:46,931 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:46,931 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:46,932 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:46,933 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:46,933 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:46,938 - root - INFO - Clearing user context
2025-12-04 14:39:46,948 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 14:39:46,948 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:46,949 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:39:46,949 - root - INFO - Clearing user context
2025-12-04 14:39:46,952 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:46,952 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:46,953 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:46,953 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:46,955 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:46,956 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:46,956 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:46,958 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:46,958 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:46,959 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:46,961 - root - INFO - Clearing user context
2025-12-04 14:39:48,856 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:39:48,856 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:48,856 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:39:48,857 - root - INFO - Clearing user context
2025-12-04 14:39:48,858 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:48,858 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:48,859 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:48,859 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:48,860 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:48,860 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:48,861 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:48,862 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:48,862 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:48,862 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:48,868 - root - INFO - Clearing user context
2025-12-04 14:39:49,685 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:39:49,685 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:49,685 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:39:49,685 - root - INFO - Clearing user context
2025-12-04 14:39:49,687 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:49,687 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:49,687 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:49,688 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:49,689 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:49,689 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:49,689 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:49,690 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:49,691 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:49,691 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:49,699 - root - INFO - Clearing user context
2025-12-04 14:39:49,711 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:39:49,711 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:49,711 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:39:49,712 - root - INFO - Clearing user context
2025-12-04 14:39:49,713 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:49,713 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:49,714 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:49,714 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:49,715 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:49,716 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:49,716 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:49,718 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:49,719 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:49,719 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:49,723 - root - INFO - Clearing user context
2025-12-04 14:39:49,732 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/4
2025-12-04 14:39:49,732 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:49,733 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:39:49,733 - root - INFO - Clearing user context
2025-12-04 14:39:49,735 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:49,736 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:49,736 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:49,736 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:49,738 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:49,738 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:49,739 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:49,740 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:49,741 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:49,741 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:49,743 - root - INFO - Clearing user context
2025-12-04 14:39:54,932 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:39:54,932 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:39:54,933 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:39:54,933 - root - INFO - Clearing user context
2025-12-04 14:39:54,935 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:39:54,936 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:54,936 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:39:54,936 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:39:54,938 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:39:54,939 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:39:54,939 - root - INFO - Looking for user with username: admin
2025-12-04 14:39:54,940 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:39:54,941 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:39:54,941 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:39:54,947 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:39:54,948 - root - INFO - Clearing user context
2025-12-04 14:40:03,539 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:40:03,539 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:03,540 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:40:03,540 - root - INFO - Clearing user context
2025-12-04 14:40:03,541 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:03,541 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:03,542 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:03,542 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:03,543 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:03,544 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:03,544 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:03,545 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:03,545 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:03,545 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:03,553 - th_agenter.workflow_api - INFO - Updated workflow: qw - 副本 by user admin
2025-12-04 14:40:03,554 - root - INFO - Clearing user context
2025-12-04 14:40:11,962 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:40:11,963 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:11,963 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:40:11,963 - root - INFO - Clearing user context
2025-12-04 14:40:11,964 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:11,965 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:11,965 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:11,965 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:11,967 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:11,967 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:11,967 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:11,968 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:11,968 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:11,968 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:11,970 - root - ERROR - Database session error: [{'type': 'string_too_short', 'loc': ('body', 'definition', 'nodes', 1, 'parameters', 'outputs', 0, 'name'), 'msg': 'String should have at least 1 character', 'input': '', 'ctx': {'min_length': 1}}]
2025-12-04 14:40:11,971 - root - INFO - Clearing user context
2025-12-04 14:40:17,596 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:40:17,597 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:17,597 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:40:17,597 - root - INFO - Clearing user context
2025-12-04 14:40:17,598 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:17,599 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:17,599 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:17,599 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:17,601 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:17,601 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:17,601 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:17,602 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:17,602 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:17,603 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:17,604 - root - ERROR - Database session error: [{'type': 'string_too_short', 'loc': ('body', 'definition', 'nodes', 1, 'parameters', 'outputs', 0, 'name'), 'msg': 'String should have at least 1 character', 'input': '', 'ctx': {'min_length': 1}}]
2025-12-04 14:40:17,604 - root - INFO - Clearing user context
2025-12-04 14:40:20,249 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:40:20,249 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:20,250 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:40:20,250 - root - INFO - Clearing user context
2025-12-04 14:40:20,251 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:20,251 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:20,251 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:20,252 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:20,253 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:20,253 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:20,254 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:20,255 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:20,255 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:20,255 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:20,256 - root - ERROR - Database session error: [{'type': 'string_too_short', 'loc': ('body', 'definition', 'nodes', 1, 'parameters', 'outputs', 0, 'name'), 'msg': 'String should have at least 1 character', 'input': '', 'ctx': {'min_length': 1}}]
2025-12-04 14:40:20,256 - root - INFO - Clearing user context
2025-12-04 14:40:23,533 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/4
2025-12-04 14:40:23,533 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/4 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:23,533 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/4
2025-12-04 14:40:23,533 - root - INFO - Clearing user context
2025-12-04 14:40:23,535 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:23,544 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:23,545 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:23,545 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:23,547 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:23,547 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:23,547 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:23,548 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:23,549 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:23,549 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:23,550 - root - ERROR - Database session error: [{'type': 'string_too_short', 'loc': ('body', 'definition', 'nodes', 1, 'parameters', 'outputs', 0, 'name'), 'msg': 'String should have at least 1 character', 'input': '', 'ctx': {'min_length': 1}}]
2025-12-04 14:40:23,551 - root - INFO - Clearing user context
2025-12-04 14:40:24,440 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:40:24,440 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:24,440 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:40:24,441 - root - INFO - Clearing user context
2025-12-04 14:40:24,442 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:24,443 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:24,443 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:24,443 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:24,444 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:24,445 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:24,445 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:24,446 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:24,447 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:24,447 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:24,456 - root - INFO - Clearing user context
2025-12-04 14:40:25,392 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/
2025-12-04 14:40:25,392 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:25,393 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/
2025-12-04 14:40:25,393 - root - INFO - Clearing user context
2025-12-04 14:40:25,394 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:25,395 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:25,395 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:25,395 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:25,397 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:25,397 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:25,398 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:25,399 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:25,399 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:25,400 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:25,405 - root - INFO - Clearing user context
2025-12-04 14:40:25,415 - root - INFO - [MIDDLEWARE] Processing request: GET /api/admin/llm-configs/
2025-12-04 14:40:25,416 - root - INFO - [MIDDLEWARE] Checking path: /api/admin/llm-configs/ against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:25,416 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/admin/llm-configs/
2025-12-04 14:40:25,416 - root - INFO - Clearing user context
2025-12-04 14:40:25,419 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:25,419 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:25,419 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:25,419 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:25,421 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:25,421 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:25,421 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:25,423 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:25,423 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:25,423 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:25,425 - root - INFO - Clearing user context
2025-12-04 14:40:25,436 - root - INFO - [MIDDLEWARE] Processing request: GET /api/workflows/3
2025-12-04 14:40:25,436 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:25,437 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:40:25,437 - root - INFO - Clearing user context
2025-12-04 14:40:25,439 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:25,439 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:25,440 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:25,440 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:25,441 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:25,441 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:25,442 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:25,443 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:25,443 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:25,443 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:25,445 - root - INFO - Clearing user context
2025-12-04 14:40:37,160 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:40:37,160 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:37,160 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:40:37,160 - root - INFO - Clearing user context
2025-12-04 14:40:37,162 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:37,162 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:37,162 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:37,163 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:37,164 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:37,164 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:37,165 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:37,166 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:37,166 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:37,166 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:37,167 - root - ERROR - Database session error: [{'type': 'string_too_short', 'loc': ('body', 'definition', 'nodes', 1, 'parameters', 'outputs', 0, 'name'), 'msg': 'String should have at least 1 character', 'input': '', 'ctx': {'min_length': 1}}]
2025-12-04 14:40:37,167 - root - INFO - Clearing user context
2025-12-04 14:40:40,585 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:40:40,586 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:40,586 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:40:40,586 - root - INFO - Clearing user context
2025-12-04 14:40:40,587 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:40,588 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:40,588 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:40,588 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:40,590 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:40,590 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:40,590 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:40,591 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:40,592 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:40,592 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:40,601 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:40:40,603 - root - INFO - Clearing user context
2025-12-04 14:40:45,309 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:40:45,309 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:45,310 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:40:45,310 - root - INFO - Clearing user context
2025-12-04 14:40:45,311 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:45,311 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:45,312 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:45,312 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:45,313 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:45,314 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:45,314 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:45,315 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:45,315 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:45,315 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:45,323 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:40:45,324 - root - INFO - Clearing user context
2025-12-04 14:40:51,648 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:40:51,648 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:51,649 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:40:51,649 - root - INFO - Clearing user context
2025-12-04 14:40:51,650 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:51,650 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:51,650 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:51,651 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:51,652 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:51,653 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:51,653 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:51,654 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:51,654 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:51,654 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:51,669 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:40:51,670 - root - INFO - Clearing user context
2025-12-04 14:40:57,629 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:40:57,629 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:40:57,630 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:40:57,630 - root - INFO - Clearing user context
2025-12-04 14:40:57,631 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:40:57,631 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:57,632 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:40:57,632 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:40:57,633 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:40:57,634 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:40:57,634 - root - INFO - Looking for user with username: admin
2025-12-04 14:40:57,635 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:40:57,635 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:40:57,635 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:40:57,651 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:40:57,652 - root - INFO - Clearing user context
2025-12-04 14:41:32,811 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:41:32,811 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:41:32,812 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:41:32,812 - root - INFO - Clearing user context
2025-12-04 14:41:32,813 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:41:32,813 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:41:32,814 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:41:32,814 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:41:32,815 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:41:32,816 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:41:32,816 - root - INFO - Looking for user with username: admin
2025-12-04 14:41:32,817 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:41:32,817 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:41:32,818 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:41:32,825 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:41:32,826 - root - INFO - Clearing user context
2025-12-04 14:41:35,305 - root - INFO - [MIDDLEWARE] Processing request: PUT /api/workflows/3
2025-12-04 14:41:35,305 - root - INFO - [MIDDLEWARE] Checking path: /api/workflows/3 against exclude_paths: ['/docs', '/redoc', '/openapi.json', '/api/auth/login', '/api/auth/register', '/api/auth/login-oauth', '/auth/login', '/auth/register', '/auth/login-oauth', '/health', '/test']
2025-12-04 14:41:35,305 - root - INFO - [MIDDLEWARE] Processing authenticated request: /api/workflows/3
2025-12-04 14:41:35,306 - root - INFO - Clearing user context
2025-12-04 14:41:35,307 - root - INFO - Setting user in context with token: admin (ID: 2)
2025-12-04 14:41:35,307 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:41:35,308 - root - INFO - User admin (ID: 2) authenticated and set in context
2025-12-04 14:41:35,308 - root - INFO - Verified current user ID in context: 2
2025-12-04 14:41:35,309 - root - INFO - Received token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZ...
2025-12-04 14:41:35,310 - root - INFO - Token payload: {'sub': 'admin', 'exp': 1764843655}
2025-12-04 14:41:35,310 - root - INFO - Looking for user with username: admin
2025-12-04 14:41:35,311 - root - INFO - Setting user in context: admin (ID: 2)
2025-12-04 14:41:35,311 - root - INFO - Verification - ContextVar user: admin
2025-12-04 14:41:35,311 - root - INFO - User admin (ID: 2) set in UserContext
2025-12-04 14:41:35,326 - th_agenter.workflow_api - INFO - Updated workflow: qw -eee233444 by user admin
2025-12-04 14:41:35,327 - root - INFO - Clearing user context
2025-12-04 14:42:15,152 - root - INFO - Shutting down TH-Agenter application...