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

参数中如果包含%,微信开发者工具(或百度开发者工具)无法decode参数,直接白屏报错。 #15717

Closed
KangXinzhi opened this issue May 13, 2024 · 7 comments · Fixed by #16041
Assignees
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@KangXinzhi
Copy link

相关平台

微信小程序

小程序基础库: 3.4.3

使用框架: React

复现步骤

使用最新版本的taro脚手架生成项目。
使用默认模版配置页面

如果参数中不包含%正常
image

如果参数中包含%直接白屏报错
image

image image image

环境信息

👽 Taro v3.6.29


  Taro CLI 3.6.29 environment info:
    System:
      OS: macOS 13.5.2
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
      Yarn: 1.22.21 - /opt/homebrew/bin/yarn
      npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.29 => 3.6.29 
      @tarojs/components: 3.6.29 => 3.6.29 
      @tarojs/helper: 3.6.29 => 3.6.29 
      @tarojs/plugin-framework-react: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-alipay: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-h5: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-jd: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-qq: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-swan: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-tt: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-weapp: 3.6.29 => 3.6.29 
      @tarojs/react: 3.6.29 => 3.6.29 
      @tarojs/runtime: 3.6.29 => 3.6.29 
      @tarojs/shared: 3.6.29 => 3.6.29 
      @tarojs/taro: 3.6.29 => 3.6.29 
      @tarojs/taro-loader: 3.6.29 => 3.6.29 
      @tarojs/webpack5-runner: 3.6.29 => 3.6.29 
      babel-preset-taro: 3.6.29 => 3.6.29 
      eslint-config-taro: 3.6.29 => 3.6.29 
      react: ^18.0.0 => 18.3.1 

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels May 13, 2024
@KangXinzhi KangXinzhi changed the title 参数中如果包含%,微信开发者工具(或百度开发者工具)无法decode地址,直接白屏报错。 参数中如果包含%,微信开发者工具(或百度开发者工具)无法decode参数,直接白屏报错。 May 13, 2024
@KangXinzhi
Copy link
Author

断点发现大概是这里无法使用decode解析中文加%的参数,例如你%好

image

@koppthe koppthe self-assigned this May 15, 2024
@koppthe
Copy link
Contributor

koppthe commented May 20, 2024

URL Params 需要确保是符合规范的编码

@koppthe koppthe closed this as completed May 20, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Mini Program May 20, 2024
@KangXinzhi
Copy link
Author

URL Params 需要确保是符合规范的编码

就算不符合规范也不应该白屏阻塞吧,如果用微信小程序原生开发这种问题就不会白屏。 @koppthe

@koppthe
Copy link
Contributor

koppthe commented May 22, 2024

URL Params 需要确保是符合规范的编码

就算不符合规范也不应该白屏阻塞吧,如果用微信小程序原生开发这种问题就不会白屏。 @koppthe

这个确实,应该要跟小程序原生开发的体验保持一致,可以修复一下

@koppthe koppthe reopened this May 22, 2024
@github-project-automation github-project-automation bot moved this from Done to In Progress in Mini Program May 22, 2024
@KangXinzhi
Copy link
Author

URL Params 需要确保是符合规范的编码

就算不符合规范也不应该白屏阻塞吧,如果用微信小程序原生开发这种问题就不会白屏。 @koppthe

这个确实,应该要跟小程序原生开发的体验保持一致,可以修复一下

@koppthe 大佬,请问下修复进度如何,有预期上线修复时间么?

@KangXinzhi
Copy link
Author

复现的demo github地址:https://github.com/KangXinzhi/taro-issues15717

@lupingW
Copy link

lupingW commented Aug 27, 2024

为什么我的3,4,6复现不了呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants