Code Monkey home page Code Monkey logo

Comments (3)

wasgxu avatar wasgxu commented on June 11, 2024

结合服务端日志,好像根本就没有发送请求到服务端

from ion-sdk-flutter.

wasgxu avatar wasgxu commented on June 11, 2024

发现是客户端连接服务端时候发生的错误,error信息是:
gRPC Error (code: 14, codeName: UNAVAILABLE, message: Error connecting: SocketException: Connection failed (OS Error: Permission denied, errno = 13), address = xxx, port = 5551, details: null, rawResponse: null, trailers: {})
但是debug模式没有问题,而且telnet xxx 5551是通的,服务端也没异常,这次链接在siganl服务端没产生任何日志,我更换一个服务器测试一下

from ion-sdk-flutter.

wasgxu avatar wasgxu commented on June 11, 2024

OK,找到问题了,因为project_tools.sh脚本并没有给安卓AndroidManifest.xml文件加上
<uses-permission android:name="android.permission.INTERNET"/>
权限,有可能是用了新版本的flutter插件生成的模板文件和作者使用版本时并不匹配的问题,添加上就可以了,不知道为何debug模式不需要此权限,大家遇到相同的问题可以尝试这样解决,

from ion-sdk-flutter.

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.