[GH-ISSUE #341] File "G:\Strata\serve\server.py", line 958, in _note s["tail"] = (s["tail"] + (ev.text or ""))[-600:] #161

Closed
opened 2026-11-04 01:40:33 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @anbow1 on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/341

[strata] done: 4156 tokens in 0 s (0.0 tok/s) (stop, cancel=False), expert cache 91.6% hit
[strata] reading the prompt: 14,962 of 49,910 tokens, 2 s so far
[strata] reading the prompt: 23,154 of 49,910 tokens, 4 s so far
[strata] reading the prompt: 31,346 of 49,910 tokens, 6 s so far
[strata] reading the prompt: 39,538 of 49,910 tokens, 9 s so far
[strata] reading the prompt: 47,730 of 49,910 tokens, 11 s so far
[strata] reading the prompt: 49,905 of 49,910 tokens, 12 s so far

Exception occurred during processing of request from ('127.0.0.1', 61477)
Traceback (most recent call last):
File "C:\Users\bigbo\AppData\Local\Python\pythoncore-3.14-64\Lib\socketserver.py", line 697, in process_request_thread
self.finish_request(request, client_address)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bigbo\AppData\Local\Python\pythoncore-3.14-64\Lib\socketserver.py", line 362, in finish_request
self.RequestHandlerClass(request, client_address, self)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bigbo\AppData\Local\Python\pythoncore-3.14-64\Lib\socketserver.py", line 766, in init
self.handle()
~~~~~~~~~~~^^
File "C:\Users\bigbo\AppData\Local\Python\pythoncore-3.14-64\Lib\http\server.py", line 496, in handle
self.handle_one_request()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\bigbo\AppData\Local\Python\pythoncore-3.14-64\Lib\http\server.py", line 484, in handle_one_request
method()
~~~~~~^^
File "G:\Strata\serve\server.py", line 1551, in do_POST
self._openai(req)
~~~~~~~~~~~~^^^^^
File "G:\Strata\serve\server.py", line 1644, in _openai
for c in chunks:
^^^^^^
File "G:\Strata\serve\server.py", line 1233, in openai_chunks
for kind, x in run if run is not None else svc.run(ids, thinking, tools, max_new, req, cancel):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\Strata\serve\server.py", line 1022, in run
self._note(n, evs)
~~~~~~~~~~^^^^^^^^
File "G:\Strata\serve\server.py", line 958, in _note
s["tail"] = (s["tail"] + (ev.text or ""))[-600:]
~^^^^^^^^
KeyError: 'tail'

solution
s["tail"] = (s.get("tail", "") + (ev.text or ""))[-600:]

Originally created by @anbow1 on GitHub (Oct 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/341 [strata] done: 4156 tokens in 0 s (0.0 tok/s) (stop, cancel=False), expert cache 91.6% hit [strata] reading the prompt: 14,962 of 49,910 tokens, 2 s so far [strata] reading the prompt: 23,154 of 49,910 tokens, 4 s so far [strata] reading the prompt: 31,346 of 49,910 tokens, 6 s so far [strata] reading the prompt: 39,538 of 49,910 tokens, 9 s so far [strata] reading the prompt: 47,730 of 49,910 tokens, 11 s so far [strata] reading the prompt: 49,905 of 49,910 tokens, 12 s so far ---------------------------------------- Exception occurred during processing of request from ('127.0.0.1', 61477) Traceback (most recent call last): File "C:\Users\bigbo\AppData\Local\Python\pythoncore-3.14-64\Lib\socketserver.py", line 697, in process_request_thread self.finish_request(request, client_address) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\bigbo\AppData\Local\Python\pythoncore-3.14-64\Lib\socketserver.py", line 362, in finish_request self.RequestHandlerClass(request, client_address, self) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\bigbo\AppData\Local\Python\pythoncore-3.14-64\Lib\socketserver.py", line 766, in __init__ self.handle() ~~~~~~~~~~~^^ File "C:\Users\bigbo\AppData\Local\Python\pythoncore-3.14-64\Lib\http\server.py", line 496, in handle self.handle_one_request() ~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\bigbo\AppData\Local\Python\pythoncore-3.14-64\Lib\http\server.py", line 484, in handle_one_request method() ~~~~~~^^ File "G:\Strata\serve\server.py", line 1551, in do_POST self._openai(req) ~~~~~~~~~~~~^^^^^ File "G:\Strata\serve\server.py", line 1644, in _openai for c in chunks: ^^^^^^ File "G:\Strata\serve\server.py", line 1233, in openai_chunks for kind, x in run if run is not None else svc.run(ids, thinking, tools, max_new, req, cancel): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\Strata\serve\server.py", line 1022, in run self._note(n, evs) ~~~~~~~~~~^^^^^^^^ File "G:\Strata\serve\server.py", line 958, in _note s["tail"] = (s["tail"] + (ev.text or ""))[-600:] ~^^^^^^^^ KeyError: 'tail' solution s["tail"] = (s.get("tail", "") + (ev.text or ""))[-600:]
Author
Owner

@anbow1 commented on GitHub (Oct 1, 2026):

sorry. I see its already fixed in 0.1.31
care to add GLM5.3 GSQ RCO?

<!-- gh-comment-id:5925455099 --> @anbow1 commented on GitHub (Oct 1, 2026): sorry. I see its already fixed in 0.1.31 care to add GLM5.3 GSQ RCO?
Author
Owner

@Niko1221 commented on GitHub (Oct 1, 2026):

Fixed in 0.1.31 (#266), as you confirmed. Thanks!

<!-- gh-comment-id:5925957635 --> @Niko1221 commented on GitHub (Oct 1, 2026): Fixed in 0.1.31 (#266), as you confirmed. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#161
No description provided.