You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could not start a new session. Possible causes are invalid address of the remote server #21
I am trying to Run Test in Browserstack App Automate using Appium java Client 8; but getting following invalid address error; I am using Java 15;
`[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:java (default) on project java-browserstack: An exception occured while executing the Java class. null: InvocationTargetException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. java.lang.reflect.InvocationTargetException
[ERROR] Build info: version: '4.2.2', revision: '683ccb65d6'
[ERROR] System info: host: 'IT1517544', ip: '192.168.5.114', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.2'
[ERROR] Driver info: driver.version: AndroidDriver: [BROWSERSTACK_INVALID_APP_URL] The app_url specified in the 'app' capability in your test is invalid. Please specify a valid app_url that was returned in the response to upload app API request and try again.
[ERROR] Build info: version: '4.2.2', revision: '683ccb65d6'
[ERROR] System info: host: 'IT1517544', ip: '192.168.5.114', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.2'
[ERROR] Driver info: driver.version: AndroidDriver
[ERROR] remote stacktrace`
I am using following capabilities with Wc3 protocol
// Set other BrowserStack capabilities
browserstackOptions.put("appiumVersion", "1.22.0");
browserstackOptions.put("projectName", "First Java Project");
browserstackOptions.put("buildName", "browserstack-build-1");
browserstackOptions.put("sessionName", "first_test");
// Passing browserstack capabilities inside bstack:options
caps.setCapability("bstack:options", browserstackOptions);
// Set URL of the application under test
caps.setCapability("app", "bs://j3c874f21852ba57957a3fdc33f47514288c4ba4");
// Specify deviceName and platformName for testing
caps.setCapability("deviceName", "Google Pixel 3");
caps.setCapability("platformName", "android");
caps.setCapability("platformVersion", "9.0");
// Initialise the remote Webdriver using BrowserStack remote URL
// and desired capabilities defined above
AndroidDriver driver = new AndroidDriver(
//AppiumDriver driver = new AppiumDriver(
new URL("http://hub.browserstack.com/wd/hub"),
caps
);
It would be greatly appreciated if you guys can take a look at it.
UPDATE: Above issue can be closed. Finally I was able to resolve running the project after running in debug mode, and found out that App URL was not valid.
Hi, Hope you doing well. Could you please help me with the framework you are using with java for better debugging? Awaiting your response. Best Regards, Hritik Mishra BrowserStack Support
On
Tue, 21 Jun at 2:53 AM
, browserstack/java-appium-app-browserstack ***@***.***> wrote:
Hi There,
I am trying to Run Test in Browserstack App Automate using Appium java Client 8; but getting following invalid address error; I am using Java 15;
`[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:java (default) on project java-browserstack: An exception occured while executing the Java class. null: InvocationTargetException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. java.lang.reflect.InvocationTargetException
[ERROR] Build info: version: '4.2.2', revision: '683ccb65d6'
[ERROR] System info: host: 'IT1517544', ip: '192.168.5.114', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.2'
[ERROR] Driver info: driver.version: AndroidDriver: [BROWSERSTACK_INVALID_APP_URL] The app_url specified in the 'app' capability in your test is invalid. Please specify a valid app_url that was returned in the response to upload app API request and try again.
[ERROR] Build info: version: '4.2.2', revision: '683ccb65d6'
[ERROR] System info: host: 'IT1517544', ip: '192.168.5.114', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.2'
[ERROR] Driver info: driver.version: AndroidDriver
[ERROR] remote stacktrace`
I am using following capabilities with Wc3 protocol
// Set other BrowserStack capabilities
browserstackOptions.put("appiumVersion", "1.22.0");
browserstackOptions.put("projectName", "First Java Project");
browserstackOptions.put("buildName", "browserstack-build-1");
browserstackOptions.put("sessionName", "first_test");
// Passing browserstack capabilities inside bstack:options
caps.setCapability("bstack:options", browserstackOptions);
// Set URL of the application under test
caps.setCapability("app", "bs://j3c874f21852ba57957a3fdc33f47514288c4ba4");
// Specify deviceName and platformName for testing
caps.setCapability("deviceName", "Google Pixel 3");
caps.setCapability("platformName", "android");
caps.setCapability("platformVersion", "9.0");
// Initialise the remote Webdriver using BrowserStack remote URL
// and desired capabilities defined above
AndroidDriver driver = new AndroidDriver(
//AppiumDriver driver = new AppiumDriver(
new URL("https://email.browserstack.com/c/eJwljsuOhCAURL9Gdxje6MJFz2J-YwJyFdo3YKv99cP0JLWqyjkp2wojrCp9K6nBPYNGUGH0DyWMGlJLLRpKbMdpLRXRpIrewuh31AfYD1gS6i3aVntE0DERNGu_MDQEgAVJaWreCY7Gp9lVwTHkdaoyGZ2FOFbdOpeu5Yxb2dDaAMaYUIKVVJQxLhXuBKa2nFqX0lawR0G_c9xhKhPWM0KISXcfTa5P-7-VoQ2wTXdBv_RshkWs1zDMz_N6v_l0uMRXfd0Tf8HLLM7B7Xm47nzuA1WDT3_-rPwFHaFb2w"),
caps
);
It would be greatly appreciated if you guys can take a look at it.
-Thanks
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Activity
anamanick commentedon Jun 20, 2022
UPDATE: Above issue can be closed. Finally I was able to resolve running the project after running in debug mode, and found out that App URL was not valid.
browserstack-support commentedon Oct 11, 2022