Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Proxy fails to start with OSError: [WinError 10022] An invalid argument was supplied #1000

Closed
sowmya-jaxl opened this issue Jan 17, 2022 · 0 comments · Fixed by #1008
Assignees
Labels
Bug Bug report in proxy server

Comments

@sowmya-jaxl
Copy link
Contributor

sowmya-jaxl commented Jan 17, 2022

Workaround

Use remote execution mode using --local-executor 0 flag.

Exception using default flags

(.venv) PS D:\proxy.py> python -m proxy       
2022-01-17 22:18:49,323 - pid:6708 [I] plugins.load:85 - Loaded plugin proxy.http.proxy.HttpProxyPlugin
2022-01-17 22:18:49,323 - pid:6708 [I] listener.setup:97 - Listening on 127.0.0.1:8899
2022-01-17 22:18:49,504 - pid:6708 [I] pool.setup:106 - Started 8 acceptors in threaded mode
2022-01-17 22:18:49,897 - pid:3056 [E] base_events.default_exception_handler:1738 - Task exception was never retrieved
future: <Task finished name='Task-1' coro=<Threadless._run_forever() done, defined at D:\proxy.py\proxy\core\work\threadless.py:396> exception=OSError(10022, 'An invalid argument was supplied', None, 10022, None)>
Traceback (most recent call last):
  File "D:\proxy.py\proxy\core\work\threadless.py", line 400, in _run_forever
    if await self._run_once():
  File "D:\proxy.py\proxy\core\work\threadless.py", line 361, in _run_once
    work_by_ids, new_work_available = await self._selected_events()
  File "D:\proxy.py\proxy\core\work\threadless.py", line 285, in _selected_events
    events = self.selector.select(
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 324, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 315, in _select
    r, w, x = select.select(r, w, w, timeout)
OSError: [WinError 10022] An invalid argument was supplied
2022-01-17 22:18:49,910 - pid:11088 [E] base_events.default_exception_handler:1738 - Task exception was never retrieved
future: <Task finished name='Task-1' coro=<Threadless._run_forever() done, defined at D:\proxy.py\proxy\core\work\threadless.py:396> exception=OSError(10022, 'An invalid argument was supplied', None, 10022, None)>
Traceback (most recent call last):
  File "D:\proxy.py\proxy\core\work\threadless.py", line 400, in _run_forever
    if await self._run_once():
  File "D:\proxy.py\proxy\core\work\threadless.py", line 361, in _run_once
    work_by_ids, new_work_available = await self._selected_events()
  File "D:\proxy.py\proxy\core\work\threadless.py", line 285, in _selected_events
    events = self.selector.select(
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 324, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 315, in _select
    r, w, x = select.select(r, w, w, timeout)
OSError: [WinError 10022] An invalid argument was supplied
2022-01-17 22:18:49,925 - pid:12416 [E] base_events.default_exception_handler:1738 - Task exception was never retrieved
future: <Task finished name='Task-1' coro=<Threadless._run_forever() done, defined at D:\proxy.py\proxy\core\work\threadless.py:396> exception=OSError(10022, 'An invalid argument was supplied', None, 10022, None)>
Traceback (most recent call last):
  File "D:\proxy.py\proxy\core\work\threadless.py", line 400, in _run_forever
    if await self._run_once():
  File "D:\proxy.py\proxy\core\work\threadless.py", line 361, in _run_once
    work_by_ids, new_work_available = await self._selected_events()
  File "D:\proxy.py\proxy\core\work\threadless.py", line 285, in _selected_events
    events = self.selector.select(
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 324, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 315, in _select
    r, w, x = select.select(r, w, w, timeout)
OSError: [WinError 10022] An invalid argument was supplied
2022-01-17 22:18:49,936 - pid:11860 [E] base_events.default_exception_handler:1738 - Task exception was never retrieved
future: <Task finished name='Task-1' coro=<Threadless._run_forever() done, defined at D:\proxy.py\proxy\core\work\threadless.py:396> exception=OSError(10022, 'An invalid argument was supplied', None, 10022, None)>
Traceback (most recent call last):
  File "D:\proxy.py\proxy\core\work\threadless.py", line 400, in _run_forever
    if await self._run_once():
  File "D:\proxy.py\proxy\core\work\threadless.py", line 361, in _run_once
    work_by_ids, new_work_available = await self._selected_events()
  File "D:\proxy.py\proxy\core\work\threadless.py", line 285, in _selected_events
    events = self.selector.select(
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 324, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 315, in _select
    r, w, x = select.select(r, w, w, timeout)
OSError: [WinError 10022] An invalid argument was supplied
2022-01-17 22:18:49,940 - pid:5524 [E] base_events.default_exception_handler:1738 - Task exception was never retrieved
future: <Task finished name='Task-1' coro=<Threadless._run_forever() done, defined at D:\proxy.py\proxy\core\work\threadless.py:396> exception=OSError(10022, 'An invalid argument was supplied', None, 10022, None)>
Traceback (most recent call last):
  File "D:\proxy.py\proxy\core\work\threadless.py", line 400, in _run_forever
    if await self._run_once():
  File "D:\proxy.py\proxy\core\work\threadless.py", line 361, in _run_once
    work_by_ids, new_work_available = await self._selected_events()
  File "D:\proxy.py\proxy\core\work\threadless.py", line 285, in _selected_events
    events = self.selector.select(
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 324, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 315, in _select
    r, w, x = select.select(r, w, w, timeout)
OSError: [WinError 10022] An invalid argument was supplied
2022-01-17 22:18:49,945 - pid:11484 [E] base_events.default_exception_handler:1738 - Task exception was never retrieved
future: <Task finished name='Task-1' coro=<Threadless._run_forever() done, defined at D:\proxy.py\proxy\core\work\threadless.py:396> exception=OSError(10022, 'An invalid argument was supplied', None, 10022, None)>
Traceback (most recent call last):
  File "D:\proxy.py\proxy\core\work\threadless.py", line 400, in _run_forever
    if await self._run_once():
  File "D:\proxy.py\proxy\core\work\threadless.py", line 361, in _run_once
    work_by_ids, new_work_available = await self._selected_events()
  File "D:\proxy.py\proxy\core\work\threadless.py", line 285, in _selected_events
    events = self.selector.select(
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 324, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 315, in _select
    r, w, x = select.select(r, w, w, timeout)
OSError: [WinError 10022] An invalid argument was supplied
2022-01-17 22:18:49,958 - pid:11876 [E] base_events.default_exception_handler:1738 - Task exception was never retrieved
future: <Task finished name='Task-1' coro=<Threadless._run_forever() done, defined at D:\proxy.py\proxy\core\work\threadless.py:396> exception=OSError(10022, 'An invalid argument was supplied', None, 10022, None)>
Traceback (most recent call last):
  File "D:\proxy.py\proxy\core\work\threadless.py", line 400, in _run_forever
    if await self._run_once():
  File "D:\proxy.py\proxy\core\work\threadless.py", line 361, in _run_once
    work_by_ids, new_work_available = await self._selected_events()
  File "D:\proxy.py\proxy\core\work\threadless.py", line 285, in _selected_events
    events = self.selector.select(
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 324, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 315, in _select
    r, w, x = select.select(r, w, w, timeout)
OSError: [WinError 10022] An invalid argument was supplied
2022-01-17 22:18:49,979 - pid:6012 [E] base_events.default_exception_handler:1738 - Task exception was never retrieved
future: <Task finished name='Task-1' coro=<Threadless._run_forever() done, defined at D:\proxy.py\proxy\core\work\threadless.py:396> exception=OSError(10022, 'An invalid argument was supplied', None, 10022, None)>
Traceback (most recent call last):
  File "D:\proxy.py\proxy\core\work\threadless.py", line 400, in _run_forever
    if await self._run_once():
  File "D:\proxy.py\proxy\core\work\threadless.py", line 361, in _run_once
    work_by_ids, new_work_available = await self._selected_events()
  File "D:\proxy.py\proxy\core\work\threadless.py", line 285, in _selected_events
    events = self.selector.select(
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 324, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\lib\selectors.py", line 315, in _select
    r, w, x = select.select(r, w, w, timeout)
OSError: [WinError 10022] An invalid argument was supplied
2022-01-17 22:18:55,166 - pid:6708 [I] proxy._handle_exit_signal:278 - Received signal 2
2022-01-17 22:18:55,166 - pid:6708 [I] pool.shutdown:123 - Shutting down 8 acceptors
@sowmya-jaxl sowmya-jaxl added the Bug Bug report in proxy server label Jan 17, 2022
@sowmya-jaxl sowmya-jaxl changed the title [Windows] Proxy fails to start with OSError [Windows] Proxy fails to start with OSError: [WinError 10022] An invalid argument was supplied Jan 17, 2022
abhinavsingh added a commit that referenced this issue Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug report in proxy server
Projects
None yet
2 participants