Coder Social home page Coder Social logo

Comments (13)

KazuCocoa avatar KazuCocoa commented on June 8, 2024 1

If the issue is communication with real iPhone, I guess this is because port forward.
We're improving the logic like appium/appium-xcuitest-driver#1066
I guess you need to establish a connection to 54061 on the real device from this driver.


Probably flutter uses iproxy to achieve it. https://github.com/flutter/flutter/search?q=iproxy&unscoped_q=iproxy
(Appium replaced from iproxy to our own implementation for the usage)

from appium-flutter-driver.

shibupanda avatar shibupanda commented on June 8, 2024

@hongbiangoal Could you please send us to complete logs using gist.

from appium-flutter-driver.

hongbiangoal avatar hongbiangoal commented on June 8, 2024

https://gist.github.com/hongbiangoal/a45d27cbb9cd80b967c407d5e0df975c

from appium-flutter-driver.

shibupanda avatar shibupanda commented on June 8, 2024

@hongbiangoal I got below in the given logs.

Error: Couldn't start port forwarding on port 8202. Please provide a different port using 'wdaLocalPort' capability
2019-09-11 09:40:35:258 [XCUITest] at WebDriverAgent.createIProxy (/usr/local/lib/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/wda/webdriveragent.js:263:13)

Didn't get any flutter related error.
Please use the available port in wdaLocalPort capability.

from appium-flutter-driver.

hongbiangoal avatar hongbiangoal commented on June 8, 2024

I use available port, but failed!

from appium-flutter-driver.

hongbiangoal avatar hongbiangoal commented on June 8, 2024

WebDriverAgent successfully started after 6969ms
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1568195760633 (17:56:00 GMT+0800 (**标准时间))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8402/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.example.helloWorld","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[debug] [WD Proxy] Got response with status 200: {"value":{"sessionId":"E3893CD7-CDBD-408E-9E67-91223B3E1D1E","capabilities":{"device":"iphone","browserName":"hello_world","sdkVersion":"12.4.1","CFBundleIdentifier":"com.example.helloWorld"}},"sessionId":"E3893CD7-CDBD-408E-9E67-91223B3E1D1E"}
[WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1568195763123 (17:56:03 GMT+0800 (**标准时间))
[debug] [BaseDriver] Event 'wdaStarted' logged at 1568195763123 (17:56:03 GMT+0800 (**标准时间))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [BaseDriver] Event 'orientationSet' logged at 1568195763123 (17:56:03 GMT+0800 (**标准时间))
[FlutterDriver] Attempt #1
[FlutterDriver] Connecting to Dart Observatory: ws://127.0.0.1:54061/OP35kYReO6Q=/ws
[FlutterDriver] Error: connect ECONNREFUSED 127.0.0.1:54061
[FlutterDriver] at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1056:14)
[FlutterDriver] Check Dart Observatory URI ws://127.0.0.1:54061/OP35kYReO6Q=/ws
[FlutterDriver] Waiting 300 seconds before trying...

it seems ws's port not listen

from appium-flutter-driver.

shibupanda avatar shibupanda commented on June 8, 2024

Ok, will try to reproduce here and get back to you.
@truongsinh Any points you want to add here if you faced this earlier.

from appium-flutter-driver.

truongsinh avatar truongsinh commented on June 8, 2024

@hongbiangoal you are using this on real iphone device right?

from appium-flutter-driver.

hongbiangoal avatar hongbiangoal commented on June 8, 2024

@truongsinh yes
@KazuCocoa thanks,the port foward has work ok~~

from appium-flutter-driver.

hongbiangoal avatar hongbiangoal commented on June 8, 2024

resolved by iproxy localport deviceport

from appium-flutter-driver.

vijaydeepak-rezi avatar vijaydeepak-rezi commented on June 8, 2024

Can you explain how to Fix this issue . Even am facing the Same issue @hongbiangoal @KazuCocoa @shibupanda

from appium-flutter-driver.

antonydass avatar antonydass commented on June 8, 2024

Hi All,

I am also facing the same issue. Please help to resolve this issue.

from appium-flutter-driver.

haibgit avatar haibgit commented on June 8, 2024

I've same issues when run with android virual 9.0 google play.
I using app hello_word in default flutter C:\flutter\examples\hello_world
I using https://pypi.org/project/Appium-Flutter-Finder version 0.1.3

from appium-flutter-driver.

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.