Giter VIP home page Giter VIP logo

Comments (7)

mykola-mokhnach avatar mykola-mokhnach commented on September 16, 2024

I don't observe the chromedriver_autodownload is enabled in the attached log

from appium-chromedriver.

LukaszSiudakiewicz avatar LukaszSiudakiewicz commented on September 16, 2024

Is this part is not showing enable insecure server flags?

"...
2020-01-20 14:47:36:230 - [Appium]   allowInsecure: {
2020-01-20 14:47:36:230 - [Appium]     0: chromedriver_autodownload
2020-01-20 14:47:36:231 - [Appium]     1: adb_shell
2020-01-20 14:47:36:231 - [Appium]   }.."

from appium-chromedriver.

mykola-mokhnach avatar mykola-mokhnach commented on September 16, 2024

True, it is enabled. Most likely the server does not have a possibility to connect to the chromedrivers storage at: https://chromedriver.storage.googleapis.com

So this is where the timeout exception is coming from

2020-01-20 14:48:01:029 - [Chromedriver] RequestError: Error: ETIMEDOUT
2020-01-20 14:48:01:030 - [Chromedriver]     at new RequestError (/opt/testdroid/appium-1.16.0/node_modules/appium/node_modules/request-promise-core/lib/errors.js:14:15)
2020-01-20 14:48:01:030 - [Chromedriver]     at Request.plumbing.callback (/opt/testdroid/appium-1.16.0/node_modules/appium/node_modules/request-promise-core/lib/plumbing.js:87:29)
2020-01-20 14:48:01:030 - [Chromedriver]     at Request.RP$callback [as _callback] (/opt/testdroid/appium-1.16.0/node_modules/appium/node_modules/request-promise-core/lib/plumbing.js:46:31)
2020-01-20 14:48:01:031 - [Chromedriver]     at self.callback (/opt/testdroid/appium-1.16.0/node_modules/appium/node_modules/request/request.js:185:22)
2020-01-20 14:48:01:031 - [Chromedriver]     at Request.emit (events.js:198:13)
2020-01-20 14:48:01:032 - [Chromedriver]     at Timeout._onTimeout (/opt/testdroid/appium-1.16.0/node_modules/appium/node_modules/request/request.js:852:16)
2020-01-20 14:48:01:032 - [Chromedriver]     at ontimeout (timers.js:436:11)
2020-01-20 14:48:01:032 - [Chromedriver]     at tryOnTimeout (timers.js:300:5)
2020-01-20 14:48:01:033 - [Chromedriver]     at listOnTimeout (timers.js:263:5)
2020-01-20 14:48:01:033 - [Chromedriver]     at Timer.processTimers (timers.js:223:10)

from appium-chromedriver.

LukaszSiudakiewicz avatar LukaszSiudakiewicz commented on September 16, 2024

Thank You it looks like this is the case.

from appium-chromedriver.

aakashr23 avatar aakashr23 commented on September 16, 2024

Hi,

I'm facing a similar issue, but its not due to connection issues.

Started Appium server using the command mentioned in docs, log as follows:
appium --allow-insecure chromedriver_autodownload
[Appium] Welcome to Appium v1.15.1
[Appium] Non-default server args:
[Appium] allowInsecure: {
[Appium] 0: chromedriver_autodownload
[Appium] }
[Appium] Appium REST http interface listener started on 0.0.0.0:4723

Capabilities which I've used in code:
capabilities.setCapability("chromedriverChromeMappingFile", "@pathtofile");
capabilities.setCapability("chromedriverExecutableDir", "D:\Mobile_Android");

Error log:
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1612277418201 (20:20:18 GMT+0530 (India Standard Time))
[debug] [W3C] Encountered internal error running command: Error: No Chromedrivers found in 'D:\Mobile_Android'
[debug] [W3C] at Object.wrappedLogger.errorAndThrow (C:\Users\aakash.r\AppData\Roaming\npm\node_modules\appium\node_modules\appium-support\lib\logging.js:79:13)
[debug] [W3C] at Chromedriver.errorAndThrow [as start] (C:\Users\aakash.r\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver\lib\chromedriver.js:540:11)
[debug] [W3C] at AndroidUiautomator2Driver.setupNewChromedriver (C:\Users\aakash.r\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:429:3)
[debug] [W3C] at AndroidUiautomator2Driver.startChromeSession (C:\Users\aakash.r\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\context.js:245:23)
[debug] [W3C] at AndroidUiautomator2Driver.startUiAutomator2Session (C:\Users\aakash.r\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:353:7)
[debug] [W3C] at AndroidUiautomator2Driver.createSession (C:\Users\aakash.r\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:211:7)
[debug] [W3C] at AppiumDriver.createSession (C:\Users\aakash.r\AppData\Roaming\npm\node_modules\appium\lib\appium.js:353:35)
[debug] [W3C] at AppiumDriver.executeCommand (C:\Users\aakash.r\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\driver.js:376:13)
[debug] [W3C] at AppiumDriver.executeCommand (C:\Users\aakash.r\AppData\Roaming\npm\node_modules\appium\lib\appium.js:482:14)
[debug] [W3C] at asyncHandler (C:\Users\aakash.r\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:306:21)

Its searching for existing drivers instead of downloading I guess.
Please let me know how to fix this if there is an issue on my side.

from appium-chromedriver.

KazuCocoa avatar KazuCocoa commented on September 16, 2024

Please try out the latest Appium version with chromedriver_autodownload in http://appium.io/docs/en/writing-running-appium/security/#insecure-features

from appium-chromedriver.

aakashr23 avatar aakashr23 commented on September 16, 2024

Thank you @KazuCocoa. Upgrading appium worked for me.
I tried with 1.15.1 as it is mentioned in appium docs that this feature is supported from 1.8.0 onwards. Please consider updating the version number in docs. Thank you for your help.

from appium-chromedriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.