app platform "Status code was 127" error (chromedriver unexpectedly exited)

Hello eveeryone. I encountered such an error while making an application with Python Django.

python check_imei

Message: service /workspace/.cache/selenium/chromedriver/linux64/118.0.5993.70/chromedriver unexpectedly exited. status code was: 127

**from** core.models **import** Phones
**from** **import** BaseCommand
**from** selenium **import** webdriver
**from** **import** Options
**from** **import** By
**from** selenium.webdriver.common.keys **import** Keys
**from** **import** expected_conditions **as** EC
**from** **import** WebDriverWait

**class** Command(BaseCommand):
    help = 'Send Mail to Users'

    chrome_options = Options()
    driver = webdriver.Chrome(options=chrome_options)

    **def** handle(self, *args, **kwargs):

    **def** check_status_func(self, imei):
        **assert** "Portalı" **in** self.driver.title
        elem = self.driver.find_element(By.ID, "imeiCheck")
        wait = WebDriverWait(self.driver, 10)
        popup_element = wait.until(
            EC.visibility_of_element_located((By.CLASS_NAME, "imei-check-service__modal-description")))
        information = popup_element.text
        **return** information

    **def** check_status(status):
        **if** "keçib" **in** status:
            **return** "Qeydiyyatdan keçib!"
        **elif** "keçirilməyib" **in** status:
            **return** "Qedyiyyatdan keçirilməyib!"
        **return** status

    **def** refresh_property(self):
        **for** phone **in** Phones.objects.filter(status="Qedyiyyatdan keçirilməyib!"):
            status = self.check_status_func(imei=phone.imei)
            phone.status = self.check_status(status=status)

Everything works except the check_imei command thank you in advance

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi! I have similar issue. Have you figured out a solution? Thank you!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel