question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Batch execusion: filedescriptor out of range in select

See original GitHub issue

When I run a loop for collect in different pages, a specific request, after ± 200 loads show this error:

Exception in thread ServerThread (('127.0.0.1', 41075)):
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/home/jonathan/Projetos/PJ1/venv/lib/python3.7/site-packages/seleniumwire/thirdparty/mitmproxy/master.py", line 36, in run
    self.server.serve_forever()
  File "/home/jonathan/Projetos/PJ1/venv/lib/python3.7/site-packages/seleniumwire/thirdparty/mitmproxy/net/tcp.py", line 650, in serve_forever
    r, w_, e_ = select.select([self.socket], [], [], poll_interval)
ValueError: filedescriptor out of range in select()

I need restart wsl or, in jupyter, reset the session to continue.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wkeelingcommented, Mar 31, 2022

Selenium Wire still uses the old mitmproxy core, so this will likely continue to affect Selenium Wire (there’s no plans to upgrade the proxy core at the present time). I’ll see if there’s anything we can do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"filedescriptor out of range in select()" when using python's ...
the code below is used to sync uploaded picture to another place. it works, but after a period of time(about 10 days), the...
Read more >
ValueError: filedescriptor out of range in select()** · Issue #1115
I'd first try increasing the number of file descriptors on the OS. You can do this with the ulimit command. I'm not sure...
Read more >
807670 – Filedescriptor out of range in select - Red Hat Bugzilla
to manage file descriptors. A known limitation with select() caused issues for processes that opened more than 1024 files (for example, a web...
Read more >
ValueError: filedescriptor out of range in ... - Google Groups
I am trying a medium scale computation. Unfortunately it breaks every time with error messages I do not know how to interpret. They...
Read more >
Filedescriptor out of range in select - Python Forum
The problem is cause by the fact select.select on linux has a limit of 1024. This is not good when there could be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found