收藏
回答

webview加载失败,提示“不支持打开非业务域名http://about,请重新配置”

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug webview 微信安卓客户端 8.0.7 2.19.0

业务当中有页面使用weview进行h5页面的加载;

小程序配置了对应的业务域名,用户正常情况下可以访问触屏链接;

页面当中weview组件添加了bindloadbinderror事件,记录了每次url的变化;

出现问题的日志如下:

[19:11:36]  触发了binderror事件 info: {"type":"error","timeStamp":5841,"target":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{}},"currentTarget":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{}},"mark":{},"detail":{"src":"https://m.haodf.com/napi/minipage?redirect_uri=https%3A%2F%2Fm.haodf.com%2Fnconsult%2Fnetcase%2Forderdetail%3ForderId%3D6768416757%26env%3Dtouch&time=1628161894952"},"mut":false,"_userTap":false}


[19:11:36]  触发了bindload事件 info: {"type":"load","timeStamp":5947,"target":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{}},"currentTarget":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{}},"mark":{},"detail":{"src":"file:///android_asset/"},"mut":false,"_userTap":false}


[19:11:37]  触发了bindload事件 info: {"type":"load","timeStamp":6601,"target":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{}},"currentTarget":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{}},"mark":{},"detail":{"src":"https://mp.weixin.qq.com/mp/waerrpage?appid=wx08ed3dc45df80a37&domain=http%3A%2F%2Fabout&reason=1&type=jump2h5err&error_ret=2&uin=ODkzMTU2NDA2&key=946aa567270b561f28962f47b8f53e591b15b36a812c3d9a0025b57d4e487d57368bab59c4ae9b1612db4a0c65d2aa1016e9adafa31b87d2e85100b7f4b56f78922029580827440477753ef6364ee4c588840ec2ab24b291ac061059e6e6cf4f64ac8bc657d021756256bf2e310a690b87599b300074a1f20f2345957a838dc2&devicetype=android-29&version=28000753&lang=zh_CN&nettype=WIFI&ascene=49&pass_ticket=FgwgtSIXoV8rILsEvxRaxdgcKvFKG3wsf2wjkAQYwtre4EgjS95x745dj%2BZQnYPe&wx_header=1"},"mut":false,"_userTap":false}


[19:11:37]  触发了binderror事件 info: {"type":"error","target":{"dataset":{},"id":"","offsetTop":0,"offsetLeft":0},"currentTarget":{"dataset":{},"id":"","offsetTop":0,"offsetLeft":0},"timeStamp":1147,"detail":{"errMsg":"web-view load failed due to not in domain list","url":"http://about"}}

最后一次编辑于  2021-08-09
回答关注问题邀请回答
收藏

1 个回答

  • 麦梵革软件科技(上海)有限公司
    麦梵革软件科技(上海)有限公司
    2021-09-18

    请问这个问题有什么进展或者新的发现吗? 我们也碰到了相同的问题, 不过目前都是在鸿蒙系统上出现的, IOS和安卓没有听到过有类似问题上报。

    2021-09-18
    有用
    回复 1
    • WALLE
      WALLE
      2021-09-22
      h5改原生了
      2021-09-22
      回复
登录 后发表内容