Receiving “Url or Uri must start with ://*” error, it started all of a sudden and due to this error execution stops most of the time before launching the test.
These are the capabilities passed:
Attaching logs
(setUpAll) [E]
UnknownException (500): An unknown server-side error occurred while processing the command. Original error: Url or Uri must start with ://
package:webdriver/src/handler/w3c/utils.dart 99:9 parseW3cResponse
package:appium_driver/src/handler/w3c/navigation.dart 13:5 W3cNavigationHandler.parseNavigateToResponse
package:webdriver/src/common/request_client.dart 96:32 AsyncRequestClient.send
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:appium_driver/src/async/web_driver.dart 66:55 AppiumWebDriver.get
test\login.dart 35:32 main.
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
test\login.dart main.
This test failed after it had already completed. Make sure to use [expectAsync]
or the [completes] matcher when testing async code.
package:webdriver/src/handler/w3c/utils.dart 99:9 parseW3cResponse
package:appium_driver/src/handler/w3c/navigation.dart 13:5 W3cNavigationHandler.parseNavigateToResponse
package:webdriver/src/common/request_client.dart 96:32 AsyncRequestClient.send
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:appium_driver/src/async/web_driver.dart 66:55 AppiumWebDriver.get
test\login.dart 35:32 main.
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
test\login.dart
Appium server logs:
[HTTP]
[HTTP] --> POST /wd/hub/session/66d512de-d3f6-49d9-a08f-adea32878d5e/url
[HTTP] {“url”:"/sessionXXX"}
[W3C (66d512de)] Encountered internal error running command: Error: Url or Uri must start with ://
[W3C (66d512de)] at Object.setUrl (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\validators.js:17:13)
[W3C (66d512de)] at asyncHandler (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:288:9)
[W3C (66d512de)] at C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:423:15
[W3C (66d512de)] at Layer.handle [as handle_request] (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5)
[W3C (66d512de)] at next (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\route.js:137:13)
[W3C (66d512de)] at Route.dispatch (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\route.js:112:3)
[W3C (66d512de)] at Layer.handle [as handle_request] (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5)
[W3C (66d512de)] at C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:281:22
[W3C (66d512de)] at param (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:354:14)
[W3C (66d512de)] at param (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:365:14)
[W3C (66d512de)] at Function.process_params (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:410:3)
[W3C (66d512de)] at next (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:275:10)
[W3C (66d512de)] at logger (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\morgan\index.js:144:5)
[W3C (66d512de)] at Layer.handle [as handle_request] (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5)
[W3C (66d512de)] at trim_prefix (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:317:13)
[W3C (66d512de)] at C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:284:7
[W3C (66d512de)] at Function.process_params (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:335:12)
[W3C (66d512de)] at next (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:275:10)
[W3C (66d512de)] at C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\body-parser\lib\read.js:130:5
[W3C (66d512de)] at invokeCallback (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\raw-body\index.js:224:16)
[W3C (66d512de)] at done (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\raw-body\index.js:213:7)
[W3C (66d512de)] at IncomingMessage.onEnd (C:\Users\aksha\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\raw-body\index.js:273:7)
[W3C (66d512de)] at IncomingMessage.emit (events.js:322:22)
[W3C (66d512de)] at endReadableNT (_stream_readable.js:1187:12)
[W3C (66d512de)] at processTicksAndRejections (internal/process/task_queues.js:84:21)
[HTTP] <-- POST /wd/hub/session/66d512de-d3f6-49d9-a08f-adea32878d5e/url 500 9 ms - 4337
[HTTP]