Closed SMG54321 closed 1 month ago
It seems to be a issue with webdriver_manager
, I've not been able to get this issue to happen on my end.
Does it crash randomly well the program is running and entering codes?
It seems to be a issue with
webdriver_manager
, I've not been able to get this issue to happen on my end.Does it crash randomly well the program is running and entering codes?
it doesnt enter a single code before this crash happens, it doesnt do anything for about a few minutes then suddenly produces this error log. should i update chrome or something?
Was the program working before you updated?
Was the program working before you updated?
yes, i left it running for a few days before my computer suddenly reseted. this happened while i was asleep so i have no clue what happened.
Could you run reg query "HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon" /v version
in your command prompt and tell me the version number.
Could you run
reg query "HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon" /v version
in your command prompt and tell me the version number.
120.0.6099.131
Do you have a Chrome update available? If so update
Do you have a Chrome update available? If so update
updated, i dont use chrome normally, i use opera GX. i only have chrome for dealing with this problem.
Do you have a Chrome update available? If so update
updated, i dont use chrome normally, i use opera GX. i only have chrome for dealing with this problem.
anyways, it worked now but it bugged again on back up mode, im willing to cancel the current attempt and copy-paste the error log if you want!
Weird. I'm using Chrome v120.0.6099.216
, not able to reproduce this error at all.
('Connection broken: IncompleteRead(6045185 bytes read, 1316163 more expected)'
This line in your first error log makes me think perhaps your network is dropping packets or has an unstable connection. Not sure, though.
this error is now already happening again instead of the other one, maybe an unstable connection. it also has the the connection interrupted error. this might be something to do with my connection considering you are unable to recreate this error. i have no idea what sort of fix this might require, and i dont know why this keeps happening. do you have than any idea on how to fix this unstable connection problem?
i am going to put the latest error log here for you to skim through to see if there is any difference and/or ideas that would help deal with this!
2024-01-14 15:14:26.714 | DEBUG | __main__:load_configuration:29 - Loaded configuration file located at C:\Users\Jonathan\Desktop\Discord-OTP-Forcer-main\user\cfg.yml
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 712, in _error_catcher
700 def _error_catcher(self) -> typing.Generator[None, None, None]:
(...)
708 clean_exit = False
709
710 try:
711 try:
--> 712 yield
713
..................................................
self = <urllib3.response.HTTPResponse object at 0x0000010C08A72830>
clean_exit = False
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 833, in _raw_read
799 def _raw_read(
800 self,
801 amt: int | None = None,
802 ) -> bytes:
(...)
829 # to concerns of backward compatibility. We're
830 # addressing it here to make sure IncompleteRead is
831 # raised during streaming, so all calls with incorrect
832 # Content-Length are caught.
--> 833 raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
834
..................................................
self = <urllib3.response.HTTPResponse object at 0x0000010C08A72830>
amt = 10240
self._fp_bytes_read = 6193120
self.length_remaining = 1168228
..................................................
IncompleteRead: IncompleteRead(6193120 bytes read, 1168228 more expected)
The above exception was the direct cause of the following exception:
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 816, in generate
812 def generate():
813 # Special case for urllib3.
814 if hasattr(self.raw, "stream"):
815 try:
--> 816 yield from self.raw.stream(chunk_size, decode_content=True)
817 except ProtocolError as e:
..................................................
self.raw = <urllib3.response.HTTPResponse object at 0x0000010C08A72830>
self.raw.stream = <method 'HTTPResponse.stream' of <urllib3.response.HTTPRespo
nse object at 0x0000010C08A72830> response.py:912>
chunk_size = 10240
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 934, in stream
912 def stream(
913 self, amt: int | None = 2**16, decode_content: bool | None = None
914 ) -> typing.Generator[bytes, None, None]:
(...)
930 if self.chunked and self.supports_chunked_reads():
931 yield from self.read_chunked(amt, decode_content=decode_content)
932 else:
933 while not is_fp_closed(self._fp) or len(self._decoded_buffer) > 0:
--> 934 data = self.read(amt=amt, decode_content=decode_content)
935
..................................................
self = <urllib3.response.HTTPResponse object at 0x0000010C08A72830>
amt = 10240
decode_content = True
self.chunked = False
self.supports_chunked_reads = <method 'HTTPResponse.supports_chunked_reads' of <urllib3.re
sponse.HTTPResponse object at 0x0000010C08A72830> response.p
y:985>
self.read_chunked = <method 'HTTPResponse.read_chunked' of <urllib3.response.HTT
PResponse object at 0x0000010C08A72830> response.py:1030>
self._fp = <http.client.HTTPResponse object at 0x0000010C08A726E0>
self._decoded_buffer = <urllib3.response.BytesQueueBuffer object at 0x0000010C08A72
690>
data = b'\x82\xab5\xa0 \x14m\xa2\x90\x92x\x86C\xb3*\x13r\xbcATex\xa
3=\x95*\t\x0e\xbct;I\x13\xd6/A\xac\x00\x8a\x10\x99\x1fT\x1d\
x91J\xc5\x02\xbd\xfb\xa8\\\xe6\xad\xc77\x0c\xf7u\xd6\x99\xb0
\xe6V\t\xdcl\x1f\xe2\xa6\x93\xe2\x7f\xf5\x12\r\xd5X\x11?\xff
\x1b(}my>\x95\x9d\xdb\xd8\x0c\xa5IUG\xaf]\xc5\xac\xd5\xd4\x8
5uJ\x89S\x9f\x99\x88\xc3m\xc9\xd6\xc1W6]9\xccvR\xb1B\x99\x1b
\xda\\\\\x85\xed\xf0o\xd8\x98]\xe3\xb9Ar\x04\x9d\xac\x8fQG\x
f9\xfc\xc0\x87[\x86f\xff\x16d\xb5e\x98\xea\xc2\xe1\x00\xf4\x
04\xa9h\xb7\xf3n\xee...
self.read = <method 'HTTPResponse.read' of <urllib3.response.HTTPRespons
e object at 0x0000010C08A72830> response.py:841>
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 905, in read
841 def read(
842 self,
843 amt: int | None = None,
844 decode_content: bool | None = None,
845 cache_content: bool = False,
846 ) -> bytes:
(...)
901 while len(self._decoded_buffer) < amt and data:
902 # TODO make sure to initially read enough data to get past the headers
903 # For example, the GZ file header takes 10 bytes, we don't want to read
904 # it one byte at a time
--> 905 data = self._raw_read(amt)
906 decoded_data = self._decode(data, decode_content, flush_decoder)
..................................................
self = <urllib3.response.HTTPResponse object at 0x0000010C08A72830>
amt = 10240
decode_content = True
cache_content = False
self._decoded_buffer = <urllib3.response.BytesQueueBuffer object at 0x0000010C08A72
690>
data = b'\x8e\xf2P\x03VcU\xe0y\xe7c\xe4\x85\xbdI\xafw\xd89\xcd\xdf\
xfdp"q\xc6r\xff\x8d\x01\x9f|\x14\xa4\xf3\xb6\x94l\xb3.\xdb\x
f6\xb7\xcb\x0c0\x1cN\x8b\xda\x94\xeb\x14(\xd4\x9a1xN}\x12>\x
95\xea\xafo\x98\x1e4#\xf4}*4\x8a\xb2"\x17*\x14\x1d\xaf\xc0\x
b5Q\x89P\xf0\xc9)O1\\\xf9\xc2a$\xaez\xa8\xa8\xa0\xc0\xf0\x81
03,\xc8\x14U\xcdhU\xfd\x1d\xf0\x97\xb4\x9e \x9ejN\x89:\xb6V\
xc0EL\xcc\xa0\xb3\x97\xcf:\x1e\xb1\x1d\x8fa\x19\xb1{\x03\xc4
\x9b\xb1<\xb8\x17\x9b\x83Uz\xc4\xa0\xa7\xdfZC6JG\\~~\xaa\xb2
\xd1e\x88^\x0c\x13\x...
self._raw_read = <method 'HTTPResponse._raw_read' of <urllib3.response.HTTPRe
sponse object at 0x0000010C08A72830> response.py:799>
decoded_data = b'\x8e\xf2P\x03VcU\xe0y\xe7c\xe4\x85\xbdI\xafw\xd89\xcd\xdf\
xfdp"q\xc6r\xff\x8d\x01\x9f|\x14\xa4\xf3\xb6\x94l\xb3.\xdb\x
f6\xb7\xcb\x0c0\x1cN\x8b\xda\x94\xeb\x14(\xd4\x9a1xN}\x12>\x
95\xea\xafo\x98\x1e4#\xf4}*4\x8a\xb2"\x17*\x14\x1d\xaf\xc0\x
b5Q\x89P\xf0\xc9)O1\\\xf9\xc2a$\xaez\xa8\xa8\xa0\xc0\xf0\x81
03,\xc8\x14U\xcdhU\xfd\x1d\xf0\x97\xb4\x9e \x9ejN\x89:\xb6V\
xc0EL\xcc\xa0\xb3\x97\xcf:\x1e\xb1\x1d\x8fa\x19\xb1{\x03\xc4
\x9b\xb1<\xb8\x17\x9b\x83Uz\xc4\xa0\xa7\xdfZC6JG\\~~\xaa\xb2
\xd1e\x88^\x0c\x13\x...
self._decode = <method 'BaseHTTPResponse._decode' of <urllib3.response.HTTP
Response object at 0x0000010C08A72830> response.py:431>
flush_decoder = False
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 811, in _raw_read
799 def _raw_read(
800 self,
801 amt: int | None = None,
802 ) -> bytes:
(...)
807 return None # type: ignore[return-value]
808
809 fp_closed = getattr(self._fp, "closed", False)
810
--> 811 with self._error_catcher():
812 data = self._fp_read(amt) if not fp_closed else b""
..................................................
self = <urllib3.response.HTTPResponse object at 0x0000010C08A72830>
amt = 10240
fp_closed = False
self._fp = <http.client.HTTPResponse object at 0x0000010C08A726E0>
self._error_catcher = <method 'HTTPResponse._error_catcher' of <urllib3.response.H
TTPResponse object at 0x0000010C08A72830> contextlib.py:287>
data = b''
self._fp_read = <method 'HTTPResponse._fp_read' of <urllib3.response.HTTPRes
ponse object at 0x0000010C08A72830> response.py:755>
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\contextlib.py", line 155, in __exit__
141 def __exit__(self, typ, value, traceback):
(...)
151 # Need to force instantiation so we can reliably
152 # tell if we get the same exception back
153 value = typ()
154 try:
--> 155 self.gen.throw(value)
156 except StopIteration as exc:
..................................................
value = IncompleteRead(6193120 bytes read, 1168228 more expected)
traceback = <traceback object at 0x0000010C08A67980>
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 729, in _error_catcher
700 def _error_catcher(self) -> typing.Generator[None, None, None]:
(...)
725 raise ReadTimeoutError(self._pool, None, "Read timed out.") from e # type: ignore[arg-type]
726
727 except (HTTPException, OSError) as e:
728 # This includes IncompleteRead.
--> 729 raise ProtocolError(f"Connection broken: {e!r}", e) from e
730
..................................................
self = <urllib3.response.HTTPResponse object at 0x0000010C08A72830>
self._pool = <urllib3.connectionpool.HTTPSConnectionPool object at 0x0000
010C08A72A50>
..................................................
---- (full traceback above) ----
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 816, in generate
yield from self.raw.stream(chunk_size, decode_content=True)
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 934, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 905, in read
data = self._raw_read(amt)
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 811, in _raw_read
with self._error_catcher():
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\contextlib.py", line 155, in __exit__
self.gen.throw(value)
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\response.py", line 729, in _error_catcher
raise ProtocolError(f"Connection broken: {e!r}", e) from e
ProtocolError: ('Connection broken: IncompleteRead(6193120 bytes read, 1168228 more expected)', IncompleteRead(6193120 bytes read, 1168228 more expected))
While handling the above exception, another exception occurred:
File "C:\Users\Jonathan\Desktop\Discord-OTP-Forcer-main\main.py", line 82, in <module>
78 bootstrap_login_page(driver, configuration)
79
80 if __name__ == '__main__':
81 try:
--> 82 userFacing(load_configuration())
83 except UserCausedHalt:
..................................................
__name__ = '__main__'
..................................................
File "C:\Users\Jonathan\Desktop\Discord-OTP-Forcer-main\main.py", line 77, in userFacing
32 def userFacing(configuration: dict):
(...)
73 if configuration['codeMode'].lower() not in validCodeModes: raise ValueError('Invalid code-generation mode inputted!')
74
75 # Start the simulated browser, and run it in an infinite loop.
76 while True:
--> 77 driver = bootstrap_browser(configuration)
78 bootstrap_login_page(driver, configuration)
..................................................
configuration = {'email': '',
'password': '',
'programMode': 'reset',
'codeMode': 'normal',
'newPassword': 'N3P3T@33',
'resetToken': 'eyJpZCI6MTE3NjMxNDAzMjg5NTAzMzM0NCwiZW1haWwi
OiJjbG9wYXRyaWNrMEBnbWFpbC5jb20ifQ.ZaRQ7Q.EGRgCPNJqAOv7ijt6I
WCa-YzrN0',
'authToken': '',
'sensitiveDebug': 'False',
'logCreation': 'False'}
validCodeModes = {'both', 'normal', 'backup_let', 'backup', }
..................................................
File "C:\Users\Jonathan\Desktop\Discord-OTP-Forcer-main\src\backend.py", line 45, in bootstrap_browser
24 def bootstrap_browser(
25 configuration: dict,
26 ) -> webdriver.chrome.webdriver.WebDriver:
(...)
41 #options.add_argument('--headless')
42 #options.add_argument('--log-level=1')
43
44 # Get and initialize the most up-to-date Chromium web driver
--> 45 driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
46 logger.debug('Starting Chromium browser')
..................................................
configuration = {'email': '',
'password': '',
'programMode': 'reset',
'codeMode': 'normal',
'newPassword': 'N3P3T@33',
'resetToken': 'eyJpZCI6MTE3NjMxNDAzMjg5NTAzMzM0NCwiZW1haWwi
OiJjbG9wYXRyaWNrMEBnbWFpbC5jb20ifQ.ZaRQ7Q.EGRgCPNJqAOv7ijt6I
WCa-YzrN0',
'authToken': '',
'sensitiveDebug': 'False',
'logCreation': 'False'}
options = <selenium.webdriver.chrome.options.Options object at 0x00000
10C0857B4D0>
logger.debug = <method 'Logger.debug' of <loguru.logger handlers=[(id=0, le
vel=10, sink=<stderr>)]> _logger.py:2038>
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\webdriver_manager\chrome.py", line 40, in install
39 def install(self) -> str:
--> 40 driver_path = self._get_driver_binary_path(self.driver)
41 os.chmod(driver_path, 0o755)
..................................................
self = <webdriver_manager.chrome.ChromeDriverManager object at 0x00
00010C06211520>
self._get_driver_binary_path = <method 'DriverManager._get_driver_binary_path' of <webdrive
r_manager.chrome.ChromeDriverManager object at 0x0000010C062
11520> manager.py:34>
self.driver = <webdriver_manager.drivers.chrome.ChromeDriver object at 0x0
000010C083C5520>
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\webdriver_manager\core\manager.py", line 40, in _get_driver_binary_path
34 def _get_driver_binary_path(self, driver):
(...)
36 if binary_path:
37 return binary_path
38
39 os_type = self.get_os_type()
--> 40 file = self._download_manager.download_file(driver.get_driver_download_url(os_type))
41 binary_path = self._cache_manager.save_file_to_cache(driver, file)
..................................................
self = <webdriver_manager.chrome.ChromeDriverManager object at 0x00
00010C06211520>
driver = <webdriver_manager.drivers.chrome.ChromeDriver object at 0x0
000010C083C5520>
binary_path = None
os_type = 'win32'
self.get_os_type = <method 'ChromeDriverManager.get_os_type' of <webdriver_mana
ger.chrome.ChromeDriverManager object at 0x0000010C06211520>
chrome.py:44>
self._download_manager.download_file = <method 'WDMDownloadManager.download_file' of <webdriver_man
ager.core.download_manager.WDMDownloadManager object at 0x00
00010C08A08F50> download_manager.py:27>
driver.get_driver_download_url = <method 'ChromeDriver.get_driver_download_url' of <webdriver
_manager.drivers.chrome.ChromeDriver object at 0x0000010C083
C5520> chrome.py:31>
self._cache_manager.save_file_to_cache = <method 'DriverCacheManager.save_file_to_cache' of <webdrive
r_manager.core.driver_cache.DriverCacheManager object at 0x0
000010C05FA79E0> driver_cache.py:51>
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\webdriver_manager\core\download_manager.py", line 32, in download_file
27 def download_file(self, url: str) -> File:
28 log(f"About to download new driver from {url}")
29 response = self._http_client.get(url)
30 log(f"Driver downloading response is {response.status_code}")
31 file_name = self.extract_filename_from_url(url)
--> 32 return File(response, file_name)
..................................................
self = <webdriver_manager.core.download_manager.WDMDownloadManager
object at 0x0000010C08A08F50>
url = 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing
/120.0.6099.109/win32/chromedriver-win32.zip'
response = <Response [200]>
self._http_client.get = <method 'WDMHttpClient.get' of <webdriver_manager.core.http.
WDMHttpClient object at 0x0000010C0843EE70> http.py:30>
response.status_code = 200
file_name = 'chromedriver-win32.zip'
self.extract_filename_from_url = <function 'WDMDownloadManager.extract_filename_from_url' dow
nload_manager.py:34>
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\webdriver_manager\core\file_manager.py", line 12, in __init__
11 def __init__(self, stream, file_name):
--> 12 self.content = stream.content
13 self.__stream = stream
..................................................
self = <webdriver_manager.core.file_manager.File object at 0x000001
0C08A60C50>
stream = <Response [200]>
file_name = 'chromedriver-win32.zip'
self.content = # AttributeError
self = <webdriver_manager.core.file_manager.File object at 0
x0000010C08A60C50>
stream.content = # ChunkedEncodingError
stream = <Response [200]>
self.__stream = # AttributeError
self = <webdriver_manager.core.file_manager.File object at 0
x0000010C08A60C50>
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 899, in content
888 def content(self):
(...)
895
896 if self.status_code == 0 or self.raw is None:
897 self._content = None
898 else:
--> 899 self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b""
900
..................................................
self = <Response [200]>
self.status_code = 200
self.raw = <urllib3.response.HTTPResponse object at 0x0000010C08A72830>
self._content = False
self.iter_content = <method 'Response.iter_content' of <Response [200]> models.p
y:795>
CONTENT_CHUNK_SIZE = 10240
..................................................
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 818, in generate
812 def generate():
(...)
814 if hasattr(self.raw, "stream"):
815 try:
816 yield from self.raw.stream(chunk_size, decode_content=True)
817 except ProtocolError as e:
--> 818 raise ChunkedEncodingError(e)
819 except DecodeError as e:
..................................................
self.raw = <urllib3.response.HTTPResponse object at 0x0000010C08A72830>
self.raw.stream = <method 'HTTPResponse.stream' of <urllib3.response.HTTPRespo
nse object at 0x0000010C08A72830> response.py:912>
chunk_size = 10240
..................................................
---- (full traceback above) ----
File "C:\Users\Jonathan\Desktop\Discord-OTP-Forcer-main\main.py", line 82, in <module>
userFacing(load_configuration())
File "C:\Users\Jonathan\Desktop\Discord-OTP-Forcer-main\main.py", line 77, in userFacing
driver = bootstrap_browser(configuration)
File "C:\Users\Jonathan\Desktop\Discord-OTP-Forcer-main\src\backend.py", line 45, in bootstrap_browser
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\webdriver_manager\chrome.py", line 40, in install
driver_path = self._get_driver_binary_path(self.driver)
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\webdriver_manager\core\manager.py", line 40, in _get_driver_binary_path
file = self._download_manager.download_file(driver.get_driver_download_url(os_type))
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\webdriver_manager\core\download_manager.py", line 32, in download_file
return File(response, file_name)
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\webdriver_manager\core\file_manager.py", line 12, in __init__
self.content = stream.content
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 899, in content
self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b""
File "C:\Users\Jonathan\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 818, in generate
raise ChunkedEncodingError(e)
ChunkedEncodingError: ('Connection broken: IncompleteRead(6193120 bytes read, 1168228 more expected)', IncompleteRead(6193120 bytes read, 1168228 more expected))
Press any key to continue . . .
Does this still occur?
Description
after windows reseted my computer to update itself, i have received this error every time i have started the program. it seems that chunk sizes are too big for the program to handle now (while i don't know what size they were, they are now 10240 bytes) . it could be something on chrome's side, should i re-download chrome to see if that fixes the issue? the driver mamager is at 0x000001F947C634D0, should it be else where?
im sorry, i still dont know much about code!
Minimal Reproduction
i have started it and waited a few minutes before it crashes again in this matter. i have copied the entire error log into the box below. i apologize for any trouble i may cause with this!
Error
Operating System Version
Widows 10
Python Version
3.12
Program Version
latest
Any other information or context?
No response