[Python] Getting "Registration response error messages" with Chromedriver 138.0.7204.92 in...

Discussão em 'Python' iniciado por Stack, Julho 8, 2025.

  1. Stack

    Stack Membro Participativo

    I suddenly get a lot of error messages in Chromedriver 138, which wasn't the case up to and including the version 137, when using it with selenium. Even a very simple code will produce these error messages.

    Example code:

    print("Starting...")
    from selenium import webdriver
    from selenium.webdriver.common.by import By
    from selenium.webdriver.common.keys import Keys
    from selenium.webdriver.support.ui import WebDriverWait
    from selenium.webdriver.support import expected_conditions as EC
    from selenium.webdriver.chrome.options import Options
    import time

    chrome_options = Options()
    chrome_options.add_argument("--disable-search-engine-choice-screen")
    driver = webdriver.Chrome(options=chrome_options)
    driver.maximize_window()
    driver.get('https://stackoverflow.com')

    time.sleep(5)
    driver.close()
    driver.quit()



    Output:

    Starting...

    DevTools listening on ws://127.0.0.1:62723/devtools/browser/74d3cebf-70b4-408e-bc73-eb8794d5d0b1
    WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
    I0000 00:00:1751611600.268543 5768 voice_transcription.cc:58] Registering VoiceTranscriptionCapability
    [9156:2652:0704/084640.461:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
    [9156:2652:0704/084640.496:ERROR:google_apis\gcm\engine\mcs_client.cc:700] Error code: 401 Error message: Authentication Failed: wrong_secret
    [9156:2652:0704/084640.496:ERROR:google_apis\gcm\engine\mcs_client.cc:702] Failed to log in to GCM, resetting connection.
    [9156:2652:0704/084640.508:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR


    I'm not even using selenium on a phone but on a desktop PC and the script doesn't have anyhting to do with GCM or mobile communication so I wonder why these messages appear.

    Continue reading...

Compartilhe esta Página