xxx 0 未知错误的 Http 失败响应

问题描述

PostGraphile v4.9.2 服务器监听端口 5001

‣ GraphQL API:http://0.0.0.0:5001/graphql

我如何将 http 更改为 https。我的意思是,我想要 https://0.0.0.0:5001/graphql

因为,我在调试我的 android 离子电容器应用程序时出错

E/Capacitor/Console:文件:http://localhost/vendor-es2018.js - 第 41539 行 - 消息:错误错误:http://mydomain .com:5001/graphql 的 Http 失败响应:0 未知错误

我认为这是关于 http 问题,但正如您所见,这是未知错误。提前致谢

解决方法

我在这里找到了解决方案:How to allow all Network connection types HTTP and HTTPS in Android (9) Pie? 我允许 manifest.xml 中的 http 请求,并添加了 networkSecurityConfig.xml 谢谢大家