kaliiiiiiiiii / CDP-Socket

socket for handling chrome-developer-protocol connections
MIT License
11 stars 3 forks source link

cdp_socket.exceptions.CDPError: {'code': -32600, 'message': 'Duplicate id in protocol request'} #29

Open 0xRSW opened 1 month ago

0xRSW commented 1 month ago
"C:\Users\R\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium_driverless\types\webelement.py", line 382, 
in text return await self.get_property("textContent") File "C:\Users\R\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium_driverless\types\webelement.py", line 371, 
in get_property return await self.execute_script(f"return obj[arguments[0]]", name) File "C:\Users\R\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium_driverless\types\webelement.py", line 913, 
in execute_script return await self.exec(script, *args, max_depth=max_depth, serialization=serialization, File "C:\Users\R\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium_driverless\types\deserialize.py", line 202, 
in exec res = await self.exec_raw(script, *args, max_depth=max_depth, File "C:\Users\R\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium_driverless\types\deserialize.py", line 152, 
in exec_raw raise e File "C:\Users\R\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium_driverless\types\deserialize.py", line 145, 
in exec_raw res = await self.target.execute_cdp_cmd("Runtime.callFunctionOn", args, timeout=timeout) File "C:\Users\R\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium_driverless\types\target.py", line 1125, 
in execute_cdp_cmd result = await self.socket.exec(method=cmd, params=cmd_args, timeout=timeout) File "C:\Users\R\AppData\Local\Programs\Python\Python310\lib\site-packages\cdp_socket\socket.py", line 85, 
in exec res = await asyncio.wait_for(self._responses[_id], timeout=timeout) File "C:\Users\R\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 445, 
in wait_for return fut.result() 
cdp_socket.exceptions.CDPError: {'code': -32600, 'message': 'Duplicate id in protocol request'} 

You suggested possible issue is here: https://github.com/kaliiiiiiiiii/CDP-Socket/blob/4813479d7b856c4a609aa19e6fea80ed9d425445/src/cdp_socket/socket.py#L71-L77

kaliiiiiiiiii commented 1 month ago

Thanks!