nucosen / broadcast

「同人音楽のトレンドをほぼ最速でキャッチできる生放送」NUCOSenで使用されている、自動放送システムのソースコードです。
GNU Affero General Public License v3.0
2 stars 2 forks source link

3/20からnucosenの動作が不安定。 #137

Closed komatti365 closed 6 months ago

komatti365 commented 7 months ago

概要 3/20の放送より、かなりの頻度で引用が停止する

再現手順 不明。通常運用中に突然発生する

期待される挙動 引用が停止せず継続する

スクリーンショット/ログ 3/20 WARNING @ nucosen.quote.getVideoInfo (retry_internal) 404 Client Error: Not Found for url: https://lapi.spi.nicovideo.jp/v1/tools/live/quote/services/video/contents/sm43537631, retrying in 1 seconds... [01:50] WARNING @ nucosen.quote.getVideoInfo (__retry_internal) 404 Client Error: Not Found for url: https://lapi.spi.nicovideo.jp/v1/tools/live/quote/services/video/contents/sm43537631, retrying in 2 seconds... [01:50] WARNING @ nucosen.personality.randomSelection (retry_internal) 404 Client Error: Not Found for url: https://lapi.spi.nicovideo.jp/v1/tools/live/quote/services/video/contents/sm43537631, retrying in 1 seconds.

3/22 400 Client Error: Bad Request for url: https://live2.nicovideo.jp/watch/lv344684812/operator_comment, retrying in 1 seconds... [20:51] WARNING @ nucosen.live.showMessage (retry_internal) 400 Client Error: Bad Request for url: https://live2.nicovideo.jp/watch/lv344684812/operator_comment, retrying in 2 seconds... [20:51] WARNING @ nucosen.live.showMessage (retry_internal) 400 Client Error: Bad Request for url: https://live2.nicovideo.jp/watch/lv344684812/operator_comment, retrying in 4 seconds... [20:51] WARNING @ nucosen.live.showMessage (retry_internal) 400 Client Error: Bad Request for url: https://live2.nicovideo.jp/watch/lv344684812/operator_comment, retrying in 8 seconds... [20:51] WARNING @ nucosen.live.showMessage (retry_internal) 400 Client Error: Bad Request for url: https://live2.nicovideo.jp/watch/lv344684812/operator_comment, retrying in 16 seconds... [20:51] WARNING @ nucosen.live.showMessage (retry_internal) 400 Client Error: Bad Request for url: https://live2.nicovideo.jp/watch/lv344684812/operator_comment, retrying in 32 seconds... [20:52] WARNING @ nucosen.live.showMessage (retry_internal) 400 Client Error: Bad Request for url: https://live2.nicovideo.jp/watch/lv344684812/operator_comment, retrying in 64 seconds... [20:53] WARNING @ nucosen.live.showMessage (retry_internal) 400 Client Error: Bad Request for url: https://live2.nicovideo.jp/watch/lv344684812/operator_comment, retrying in 128 seconds... [20:55] WARNING @ nucosen.live.showMessage (retry_internal) 400 Client Error: Bad Request for url: https://live2.nicovideo.jp/watch/lv344684812/operator_comment, retrying in 256 seconds...

CRITICAL @ nucosen.nucosen (run) 例外がキャッチされませんでした Traceback (most recent call last): File "/home/nucosen/.local/pipx/venvs/nucosen/lib/python3.11/site-packages/nucosen/nucosen.py", line 163, in run live.showMessage(currentLiveId, videoInfo[2], session) File "/home/nucosen/.local/pipx/venvs/nucosen/lib/python3.11/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), *kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nucosen/.local/pipx/venvs/nucosen/lib/python3.11/site-packages/retry/api.py", line 73, in retry_decorator return __retry_internal(partial(f, args, kwargs), exceptions, tries, delay, max_delay, backoff, jitter, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nucosen/.local/pipx/venvs/nucosen/lib/python3.11/site-packages/retry/api.py", line 33, in __retry_internal return f() ^^^ File "/home/nucosen/.local/pipx/venvs/nucosen/lib/python3.11/site-packages/nucosen/live.py", line 95, in showMessage resp.raise_for_status() File "/home/nucosen/.local/pipx/venvs/nucosen/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://live2.nicovideo.jp/watch/lv344684812/operator_comment 補遺** SNI周りのトラブルでは・・・?

sitting-cat commented 6 months ago

複数事象が混在しているため、 #140 と #141 に分割しました。