-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appium Service Builder takes more than 3 minutes #323
Comments
Have you tried to start a session manually with the same arguments? How much time it takes? |
@mykola-mokhnach may i get the command to run manually. some sample command should help me. |
@mykola-mokhnach i ran below command in CMD manually
Appium started quickly. |
Now debug the code and get the command line generated by C# lib to compare it with one that you've executed manually. If these two are exactly the same then there might be an issue in the C# client lib |
I am debugging the appium library and found the delay happens at this statement
Class: AppiumServiceBuilder |
sorry i closed the issue by mistake. |
We are not .net experts here. Moving the issue to the appropriate place |
delay happens at this statement
Class: AppiumServiceBuilder I found the recovery by adding below environmental variable: |
I did a little bit of digging and its (probably) because update-notifier doesn't have a network-connection (maybe you are behind a proxy, update-notifier doesn't honor proxy-settings). See discussion on npm-community: https://npm.community/t/npm-version-takes-3-minutes-to-complete-when-run-in-child-process-and-behind-corporate-proxy/1658/11 and pull-request npm/cli#61 . Workarounds are to either set the environment variable |
The problem
I am trying to start a Appium Android Service with AppiumServiceBuilder() but it takes more than 3 minutes to build
Environment
Details
I am starting Appium service for android device using below statement:
_service = new AppiumServiceBuilder().UsingPort(4723).WithLogFile(fileInfo).WithArguments(args).Build();
First time when Appium is installed, the service starts within 15 seconds.
However if i restart the Desktop or later, it takes more than 3 minutes to start the session.
(Whether the device already has Appium.settings app or not - the behavior is same)
Link to Appium logs
No appium session is created during the error time, so no logs can be provided.
Code To Reproduce Issue
The text was updated successfully, but these errors were encountered: