Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPhone Webview 中日志上报异常,请求报400 #210

Open
4 tasks done
threerocks opened this issue Jun 12, 2024 · 1 comment
Open
4 tasks done

iPhone Webview 中日志上报异常,请求报400 #210

threerocks opened this issue Jun 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@threerocks
Copy link

threerocks commented Jun 12, 2024

Describe the bug

pc 端点击面板的,离线日志上传后,在后台日志回放可以看到记录。
但在 ios app 的webview中点击,后台收不到记录。
同一页面安卓表现和 pc 端一致,正常使用
表现为:

  1. pc 端点击后过一会显示【已复制调试链接】,看起来是成功的样子、
  2. android webview 中表现和 pc 端一致
  3. ios webview 中点击后,没有提示,过一会就又变为【离线日志:上传】

试了下,ios 机器浏览器可以正常访问 pagespy,使用【实时调试】也没问题,在实时调试的 Console 面板下方,输入这段代码:

PageSpy.pluginsWithOrder.find(i => i.name === 'DataHarborPlugin').onOfflineLog('upload')

报错了,upload fail,具体如图:
image
image

初始化代码如下:
image

Steps to reproduce

No response

System Info

System: iOS/15.6.1
Browser: AppleWebKit Webview
User Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) ;XXXXcom.xxxxf.xxh.xxxxx.dev;APP_VERSION_3000000;花花花花TEST环境企业包

Logs

No response

Validations

@threerocks threerocks added the bug Something isn't working label Jun 12, 2024
@wangyongqibj
Copy link

现在解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants