kleinanzeigen-bot
kleinanzeigen-bot copied to clipboard
Failed to execute script '__main__' due to unhandled exception!
Problem with republishing ads:
`[ERROR] Traceback (most recent call last):
File "kleinanzeigen_bot_main_.py", line 8, in
[3112] Failed to execute script 'main' due to unhandled exception!`
Please try the latest build.
Thanks it worked again! :)
I have the same error again, can you help please? If you need further information, let me know.
[INFO] ... pausing for 2000 ms ... [15340:18864:0809/002815.389:ERROR:stun_port.cc(80)] Binding error response: class=4 number=1 reason=Unauthorized [INFO] ... pausing for 1799 ms ... [15340:18864:0809/002819.210:ERROR:stun_port.cc(80)] Binding error response: class=4 number=1 reason=Unauthorized [INFO] ... pausing for 2000 ms ... [INFO] ... pausing for 2000 ms ... [15340:18864:0809/002826.614:ERROR:stun_port.cc(80)] Binding error response: class=4 number=1 reason=Unauthorized [ERROR] ElementNotInteractableException: Message: element not interactable (Session info: chrome=103.0.5060.134) Stacktrace: Backtrace: Ordinal0 [0x00B95FD3+2187219] Ordinal0 [0x00B2E6D1+1763025] Ordinal0 [0x00A43D40+802112] Ordinal0 [0x00A72C03+994307] Ordinal0 [0x00A689B3+952755] Ordinal0 [0x00A8CB8C+1100684] Ordinal0 [0x00A68394+951188] Ordinal0 [0x00A8CDA4+1101220] Ordinal0 [0x00A9CFC2+1167298] Ordinal0 [0x00A8C9A6+1100198] Ordinal0 [0x00A66F80+946048] Ordinal0 [0x00A67E76+949878] GetHandleVerifier [0x00E390C2+2721218] GetHandleVerifier [0x00E2AAF0+2662384] GetHandleVerifier [0x00C2137A+526458] GetHandleVerifier [0x00C20416+522518] Ordinal0 [0x00B34EAB+1789611] Ordinal0 [0x00B397A8+1808296] Ordinal0 [0x00B39895+1808533] Ordinal0 [0x00B426C1+1844929] BaseThreadInitThunk [0x774DFA29+25] RtlGetAppContainerNamedObjectPath [0x77687A9E+286] RtlGetAppContainerNamedObjectPath [0x77687A6E+238]
[17572] Failed to execute script 'main' due to unhandled exception!
Hello all,
think I fixed the problem. Problem is, that the phonenumber not needs to be entered anymore!
So set contact phone block in line 497 in init.py should look like following:
(Just added if statement if self.webdriver.find_element(By.ID, "postad-phonenumber").is_displayed(): )
`
#############################
# set contact phone
#############################
if ad_cfg["contact"]["phone"]:
if self.webdriver.find_element(By.ID, "postad-phonenumber").is_displayed():
try:
if not self.webdriver.find_element(By.ID, "postad-phonenumber").is_enabled():
self.webdriver.find_element(By.ID, "phoneNumberVisibility").click()
pause(2000)
except NoSuchElementException:
# ignore
pass
self.web_input(By.ID, "postad-phonenumber", ad_cfg["contact"]["phone"])
`
Cheers Airwave
Thank you very much - thats it! I just commented out the phone number... You saved my life :D