claude-code-proxy / server.log
Yash030's picture
Fix: sessions tracking now works correctly in dashboard and JSON
ef123a8
{"time": "2026-05-10 17:44:31.854027+05:30", "level": "INFO", "message": "Starting Claude Code Proxy...", "module": "api.runtime", "function": "startup", "line": 117}
{"time": "2026-05-10 17:44:31.855437+05:30", "level": "WARNING", "message": "python-dotenv could not parse statement starting at line 26", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:31.855688+05:30", "level": "INFO", "message": "GlobalRateLimiter (Provider) initialized (40 req / 60.0s, max_concurrency=5)", "module": "providers.rate_limit", "function": "__init__", "line": 63}
{"time": "2026-05-10 17:44:32.646405+05:30", "level": "DEBUG", "message": "Request options: {'method': 'get', 'url': '/models', 'post_parser': <function AsyncPaginator._get_page.<locals>._parser at 0x0000022DFA00DBC0>, 'json_data': None}", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.647020+05:30", "level": "DEBUG", "message": "Sending HTTP Request: GET https://integrate.api.nvidia.com/v1/models", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.651680+05:30", "level": "DEBUG", "message": "connect_tcp.started host='integrate.api.nvidia.com' port=443 local_address=None timeout=10.0 socket_options=None", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.731084+05:30", "level": "DEBUG", "message": "connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x0000022DFA9B5A90>", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.731446+05:30", "level": "DEBUG", "message": "start_tls.started ssl_context=<ssl.SSLContext object at 0x0000022DF7843B60> server_hostname='integrate.api.nvidia.com' timeout=10.0", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.826818+05:30", "level": "DEBUG", "message": "start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x0000022DFA80EAD0>", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.827546+05:30", "level": "DEBUG", "message": "send_connection_init.started request=<Request [b'GET']>", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.828675+05:30", "level": "DEBUG", "message": "send_connection_init.complete", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.829700+05:30", "level": "DEBUG", "message": "send_request_headers.started request=<Request [b'GET']> stream_id=1", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.829984+05:30", "level": "DEBUG", "message": "Adding (b':method', b'GET') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830104+05:30", "level": "DEBUG", "message": "Encoding 2 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830203+05:30", "level": "DEBUG", "message": "Adding (b':authority', b'integrate.api.nvidia.com') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830299+05:30", "level": "DEBUG", "message": "Encoding 1 with 6 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830389+05:30", "level": "DEBUG", "message": "Encoding 17 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830473+05:30", "level": "DEBUG", "message": "Adding (b':scheme', b'https') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830543+05:30", "level": "DEBUG", "message": "Encoding 7 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830613+05:30", "level": "DEBUG", "message": "Adding (b':path', b'/v1/models') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830750+05:30", "level": "DEBUG", "message": "Encoding 4 with 6 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830828+05:30", "level": "DEBUG", "message": "Encoding 8 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830906+05:30", "level": "DEBUG", "message": "Adding (b'accept-encoding', b'gzip, deflate') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.830981+05:30", "level": "DEBUG", "message": "Encoding 16 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831049+05:30", "level": "DEBUG", "message": "Adding (b'accept', b'application/json') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831121+05:30", "level": "DEBUG", "message": "Encoding 19 with 6 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831191+05:30", "level": "DEBUG", "message": "Encoding 11 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831256+05:30", "level": "DEBUG", "message": "Adding (b'user-agent', b'AsyncOpenAI/Python 2.32.0') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831319+05:30", "level": "DEBUG", "message": "Encoding 58 with 6 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831384+05:30", "level": "DEBUG", "message": "Encoding 19 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831447+05:30", "level": "DEBUG", "message": "Adding (b'x-stainless-lang', b'python') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831517+05:30", "level": "DEBUG", "message": "Encoding 12 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831571+05:30", "level": "DEBUG", "message": "Encoding 5 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831638+05:30", "level": "DEBUG", "message": "Adding (b'x-stainless-package-version', b'2.32.0') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831707+05:30", "level": "DEBUG", "message": "Encoding 19 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831760+05:30", "level": "DEBUG", "message": "Encoding 5 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831824+05:30", "level": "DEBUG", "message": "Adding (b'x-stainless-os', b'Windows') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.831895+05:30", "level": "DEBUG", "message": "Encoding 10 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832365+05:30", "level": "DEBUG", "message": "Encoding 6 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832453+05:30", "level": "DEBUG", "message": "Adding (b'x-stainless-arch', b'other:amd64') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832523+05:30", "level": "DEBUG", "message": "Encoding 11 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832580+05:30", "level": "DEBUG", "message": "Encoding 8 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832639+05:30", "level": "DEBUG", "message": "Adding (b'x-stainless-runtime', b'CPython') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832701+05:30", "level": "DEBUG", "message": "Encoding 14 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832748+05:30", "level": "DEBUG", "message": "Encoding 6 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832801+05:30", "level": "DEBUG", "message": "Adding (b'x-stainless-runtime-version', b'3.14.4') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832867+05:30", "level": "DEBUG", "message": "Encoding 19 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832914+05:30", "level": "DEBUG", "message": "Encoding 5 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.832978+05:30", "level": "DEBUG", "message": "Adding (b'authorization', b'Bearer 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') to the header table, sensitive:True, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833039+05:30", "level": "DEBUG", "message": "Encoding 23 with 4 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833113+05:30", "level": "DEBUG", "message": "Encoding 60 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833168+05:30", "level": "DEBUG", "message": "Adding (b'x-stainless-async', b'async:asyncio') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833232+05:30", "level": "DEBUG", "message": "Encoding 12 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833283+05:30", "level": "DEBUG", "message": "Encoding 10 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833338+05:30", "level": "DEBUG", "message": "Adding (b'x-stainless-retry-count', b'0') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833395+05:30", "level": "DEBUG", "message": "Encoding 16 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833442+05:30", "level": "DEBUG", "message": "Encoding 1 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833493+05:30", "level": "DEBUG", "message": "Adding (b'x-stainless-read-timeout', b'120.0') to the header table, sensitive:False, huffman:True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833554+05:30", "level": "DEBUG", "message": "Encoding 17 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833601+05:30", "level": "DEBUG", "message": "Encoding 4 with 7 bits", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.833741+05:30", "level": "DEBUG", "message": "Encoded header block to b'\\x82A\\x915I,\\xd6\\r%\\\\u\\x99z\\xbb\\x9aC\\rr\\x1e\\x9f\\x87D\\x88c\\xb8X\\xa4\\xf2\\x16\\x84\\x7f\\x90S\\x8b\\x1du\\xd0b\\r&=LtA\\xeaz\\x93\\x85\\x1e\\xaa&\\xaa\\xcbT9\\x18\\xd7\\xe93\\x9e\\xa5\\x04\\xbb\"\\\\\\x1f@\\x8c\\xf2\\xb2\\x123UAP\\x85\\xa8\\x1dS\\x7f\\x85\\xaf\\xd2g=_@\\x93\\xf2\\xb2\\x123UAP\\x85\\xab\\x19:\\x8eb\\xad\\xdc\\xb6 \\xc7\\xab\\x85\\x12\\xec\\x89p\\x7f@\\x8a\\xf2\\xb2\\x123UAP\\x85\\x8e\\x8f\\x86\\xe4j\\xa4?\\x84\\x7f@\\x8b\\xf2\\xb2\\x123UAP\\x85\\x87a\\'\\x88:g-\\x97\\x07L\\x8e5@\\x8e\\xf2\\xb2\\x123UAP\\x85\\xac\\xb6\\xa4\\x9a\\x92\\xff\\x86\\xbd\\xaf\\xd2g=_@\\x93\\xf2\\xb2\\x123UAP\\x85\\xac\\xb6\\xa4\\x9a\\x92\\xad\\xdc\\xb6 \\xc7\\xab\\x85ep\\xb4\\xbb_\\x1f\\x08\\xbc\\xbaQ\\xd8[\\x14\\xab\\xb8\\xeb2\\xcd\\xc7\\xbfFl9\\xe9q\\xd3\\xb2w(\\xdb\\x10V\\xa7bM\\xcb\\xf7\\x11\\xd9\\x97H\\xb8\\xc3]\\x84\\xf7\\xae\\x9b\\xee\\x93\\xaf\\x9dQc\\x93\\xf2\\xc9C\\x0b=\\xf99\\x16\\xfc5\\xb9\\x9fo@\\x8c\\xf2\\xb2\\x123UAP\\x85\\x86\\x8fU\\x13\\x8a\\x1a=TK\\x83G\\xaa\\x88c\\xff@\\x90\\xf2\\xb2\\x123UAP\\x85\\xac*l\\xf4\\xb1\\x0fmI\\x81\\x07@\\x91\\xf2\\xb2\\x123UAP\\x85\\xac(\\xe4Y&\\xa4\\xa7\\xb5?\\x84\\x08\\x80\\xb8?'", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.834050+05:30", "level": "DEBUG", "message": "send_request_headers.complete", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.834136+05:30", "level": "DEBUG", "message": "send_request_body.started request=<Request [b'GET']> stream_id=1", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.834195+05:30", "level": "DEBUG", "message": "send_request_body.complete", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.834243+05:30", "level": "DEBUG", "message": "receive_response_headers.started request=<Request [b'GET']> stream_id=1", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.887084+05:30", "level": "DEBUG", "message": "receive_remote_settings.started", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.887318+05:30", "level": "DEBUG", "message": "receive_remote_settings.complete return_value=<RemoteSettingsChanged changed_settings:{ChangedSetting(setting=3, original_value=None, new_value=128), ChangedSetting(setting=4, original_value=65535, new_value=65536), ChangedSetting(setting=5, original_value=16384, new_value=16777215)}>", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.899658+05:30", "level": "DEBUG", "message": "Decoding b' \\x88a\\x96\\xddm_J\\x04\\nh\\x1f\\xa5\\x04\\x018\\xa0Ep-\\\\e\\xe51h\\xdf_\\x8b\\x1du\\xd0b\\r&=LtA\\xea\\x00\\x04vary\\x85\\xd5a\\xa65_'", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.899836+05:30", "level": "DEBUG", "message": "Decoded 0, consumed 1 bytes", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.899910+05:30", "level": "DEBUG", "message": "Resizing header table to 0 from 4096", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.899968+05:30", "level": "DEBUG", "message": "Decoded 8, consumed 1 bytes", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900021+05:30", "level": "DEBUG", "message": "Decoded (b':status', b'200'), consumed 1", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900072+05:30", "level": "DEBUG", "message": "Decoded 33, consumed 1 bytes", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900114+05:30", "level": "DEBUG", "message": "Decoded 22, consumed 1 bytes", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900181+05:30", "level": "DEBUG", "message": "Decoded (b'date', b'Sun, 10 May 2026 12:14:38 GMT'), total consumed 24 bytes, indexed True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900241+05:30", "level": "DEBUG", "message": "Decoded 31, consumed 1 bytes", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900286+05:30", "level": "DEBUG", "message": "Decoded 11, consumed 1 bytes", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900385+05:30", "level": "DEBUG", "message": "Decoded (b'content-type', b'application/json'), total consumed 13 bytes, indexed True", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900442+05:30", "level": "DEBUG", "message": "Decoded 4, consumed 1 bytes", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900485+05:30", "level": "DEBUG", "message": "Decoded 5, consumed 1 bytes", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900533+05:30", "level": "DEBUG", "message": "Decoded (<memory at 0x0000022DFA9A9600>, b'Origin'), total consumed 12 bytes, indexed False", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.900754+05:30", "level": "DEBUG", "message": "receive_response_headers.complete return_value=(200, [(b'date', b'Sun, 10 May 2026 12:14:38 GMT'), (b'content-type', b'application/json'), (b'vary', b'Origin')])", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.901194+05:30", "level": "INFO", "message": "HTTP Request: GET https://integrate.api.nvidia.com/v1/models \"HTTP/2 200 OK\"", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.901526+05:30", "level": "DEBUG", "message": "receive_response_body.started request=<Request [b'GET']> stream_id=1", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.902085+05:30", "level": "DEBUG", "message": "receive_response_body.complete", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.902257+05:30", "level": "DEBUG", "message": "response_closed.started stream_id=1", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.902375+05:30", "level": "DEBUG", "message": "response_closed.complete", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.902539+05:30", "level": "DEBUG", "message": "HTTP Response: GET https://integrate.api.nvidia.com/v1/models \"200 OK\" Headers({'date': 'Sun, 10 May 2026 12:14:38 GMT', 'content-type': 'application/json', 'vary': 'Origin'})", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.902618+05:30", "level": "DEBUG", "message": "request_id: None", "module": "logging", "function": "callHandlers", "line": 1737}
{"time": "2026-05-10 17:44:32.906325+05:30", "level": "INFO", "message": "Configured provider models validated: models=7 providers=1", "module": "providers.registry", "function": "validate_configured_models", "line": 386}
{"time": "2026-05-10 17:44:32.997599+05:30", "level": "INFO", "message": "No Discord bot token configured, skipping platform setup", "module": "messaging.platforms.factory", "function": "create_messaging_platform", "line": 80}
{"time": "2026-05-10 17:44:32.999565+05:30", "level": "INFO", "message": "GlobalRateLimiter (Provider) initialized (9999 req / 60.0s, max_concurrency=20)", "module": "providers.rate_limit", "function": "__init__", "line": 63}
{"time": "2026-05-10 17:44:33.013006+05:30", "level": "INFO", "message": "Starting model discovery for providers: zen", "module": "providers.registry", "function": "_refresh_model_ids", "line": 324}
{"time": "2026-05-10 17:44:33.018475+05:30", "level": "INFO", "message": "Shutdown requested, cleaning up...", "module": "api.runtime", "function": "shutdown", "line": 160}
{"time": "2026-05-10 17:44:33.018969+05:30", "level": "WARNING", "message": "Shutdown step failed: provider_registry.cleanup: exc_type=ExceptionGroup", "module": "api.runtime", "function": "best_effort", "line": 47}
{"time": "2026-05-10 17:44:33.024784+05:30", "level": "INFO", "message": "Server shut down cleanly", "module": "api.runtime", "function": "shutdown", "line": 180}