[PR #1113] [CLOSED] fixed pool.py #92

Closed
opened 2026-07-19 11:34:57 +03:00 by mirror-bot · 0 comments

📋 Pull Request Information

Original PR: https://github.com/Flowseal/tg-ws-proxy/pull/1113
Author: @Gotoro
Created: 7/7/2026
Status: ❌ Closed

Base: main ← Head: fix-pool-py


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 proxy/pool.py (+2 -1)

📄 Description

After installing and starting the app following the docker guide, the container crashes with the following error:

19:49:50  INFO   [172.17.0.1:50798] DC3 -> trying CF proxy
19:49:50  ERROR  [172.17.0.1:50792] unexpected: _WsPool.get() got an unexpected keyword argument 'path'
Traceback (most recent call last):
  File "/app/proxy/tg_ws_proxy.py", line 347, in _handle_client
    ws = await ws_pool.get(dc, is_media, target, domains, path=ws_path) if not is_test_dc else None
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: _WsPool.get() got an unexpected keyword argument 'path'
19:49:50  ERROR  [172.17.0.1:50804] unexpected: _WsPool.get() got an unexpected keyword argument 'path'
Traceback (most recent call last):
  File "/app/proxy/tg_ws_proxy.py", line 347, in _handle_client
    ws = await ws_pool.get(dc, is_media, target, domains, path=ws_path) if not is_test_dc else None
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: _WsPool.get() got an unexpected keyword argument 'path'
19:49:50  ERROR  [172.17.0.1:50816] unexpected: _WsPool.get() got an unexpected keyword argument 'path'
Traceback (most recent call last):
  File "/app/proxy/tg_ws_proxy.py", line 347, in _handle_client
    ws = await ws_pool.get(dc, is_media, target, domains, path=ws_path) if not is_test_dc else None
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: _WsPool.get() got an unexpected keyword argument 'path'
19:49:51  ERROR  [172.17.0.1:50828] unexpected: _WsPool.get() got an unexpected keyword argument 'path'
Traceback (most recent call last):
  File "/app/proxy/tg_ws_proxy.py", line 347, in _handle_client
    ws = await ws_pool.get(dc, is_media, target, domains, path=ws_path) if not is_test_dc else None
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: _WsPool.get() got an unexpected keyword argument 'path'
19:49:51  INFO   [172.17.0.1:50798] DC3 WS session closed (normal): ^539.0B (3 pkts) v899.0B (4 pkts) in 0.6s
19:49:53  ERROR  [172.17.0.1:50844] unexpected: _WsPool.get() got an unexpected keyword argument 'path'
Traceback (most recent call last):
  File "/app/proxy/tg_ws_proxy.py", line 347, in _handle_client
    ws = await ws_pool.get(dc, is_media, target, domains, path=ws_path) if not is_test_dc else None
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: _WsPool.get() got an unexpected keyword argument 'path'

This pr brings back the "forgotten" path function argument, after which the app works as expected.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Flowseal/tg-ws-proxy/pull/1113 **Author:** [@Gotoro](https://github.com/Gotoro) **Created:** 7/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-pool-py` --- ### 📝 Commits (1) - [`7c382bc`](https://github.com/Flowseal/tg-ws-proxy/commit/7c382bc5f2fc7edb93bad15bf440eb2b8f778fd2) fixed pool.py ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `proxy/pool.py` (+2 -1) </details> ### 📄 Description After installing and starting the app following the [docker guide](https://github.com/Flowseal/tg-ws-proxy/blob/main/docs/README.docker.md), the container crashes with the following error: ```python 19:49:50 INFO [172.17.0.1:50798] DC3 -> trying CF proxy 19:49:50 ERROR [172.17.0.1:50792] unexpected: _WsPool.get() got an unexpected keyword argument 'path' Traceback (most recent call last): File "/app/proxy/tg_ws_proxy.py", line 347, in _handle_client ws = await ws_pool.get(dc, is_media, target, domains, path=ws_path) if not is_test_dc else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: _WsPool.get() got an unexpected keyword argument 'path' 19:49:50 ERROR [172.17.0.1:50804] unexpected: _WsPool.get() got an unexpected keyword argument 'path' Traceback (most recent call last): File "/app/proxy/tg_ws_proxy.py", line 347, in _handle_client ws = await ws_pool.get(dc, is_media, target, domains, path=ws_path) if not is_test_dc else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: _WsPool.get() got an unexpected keyword argument 'path' 19:49:50 ERROR [172.17.0.1:50816] unexpected: _WsPool.get() got an unexpected keyword argument 'path' Traceback (most recent call last): File "/app/proxy/tg_ws_proxy.py", line 347, in _handle_client ws = await ws_pool.get(dc, is_media, target, domains, path=ws_path) if not is_test_dc else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: _WsPool.get() got an unexpected keyword argument 'path' 19:49:51 ERROR [172.17.0.1:50828] unexpected: _WsPool.get() got an unexpected keyword argument 'path' Traceback (most recent call last): File "/app/proxy/tg_ws_proxy.py", line 347, in _handle_client ws = await ws_pool.get(dc, is_media, target, domains, path=ws_path) if not is_test_dc else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: _WsPool.get() got an unexpected keyword argument 'path' 19:49:51 INFO [172.17.0.1:50798] DC3 WS session closed (normal): ^539.0B (3 pkts) v899.0B (4 pkts) in 0.6s 19:49:53 ERROR [172.17.0.1:50844] unexpected: _WsPool.get() got an unexpected keyword argument 'path' Traceback (most recent call last): File "/app/proxy/tg_ws_proxy.py", line 347, in _handle_client ws = await ws_pool.get(dc, is_media, target, domains, path=ws_path) if not is_test_dc else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: _WsPool.get() got an unexpected keyword argument 'path' ``` This pr brings back the "forgotten" path function argument, after which the app works as expected. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror-bot added the pull-request label 2026-07-19 11:34:57 +03:00
mirror-bot changed title from [PR #1113] [CLOSED] fixed pool.py to [PR #1113] fixed pool.py 2026-07-20 04:11:54 +03:00
mirror-bot changed title from [PR #1113] fixed pool.py to [PR #1113] [CLOSED] fixed pool.py 2026-07-20 23:15:14 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Utilities/tg-ws-proxy#92