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

快应用容器版本获取失败! #5624

Closed
yuyongyu08 opened this issue Mar 5, 2020 · 7 comments
Closed

快应用容器版本获取失败! #5624

yuyongyu08 opened this issue Mar 5, 2020 · 7 comments
Assignees

Comments

@yuyongyu08
Copy link

问题描述

构建快应用时总是报“快应用容器版本获取失败!”

复现步骤

taro build --type quickapp

WeChat65c7f8739adce5c83f5e943a51fac77e

/**
 * 这段注释后可以贴代码
 * 提供完整可复现的代码和整理好代码格式,有助于我们快速定位问题,节省你我时间
 * 代码提供不全或代码格式混乱的 issues 【有可能会被忽略】
 * 
 * 查看如何插入代码:https://coding.net/help/doc/project/markdown.html#i-5
 */

期望行为

取消快应用容器版本的实时校验

报错信息

Error: 快应用容器版本请求失败,请重试!

系统信息

taro版本: 1.3.29
mac: 10.15.3

补充信息

如果您有功能上的建议,可以提到 FeatHub

使用上的问题,欢迎在「Taro 社区」一起交流

@taro-bot
Copy link

taro-bot bot commented Mar 5, 2020

CC @luckyadam

@taro-bot
Copy link

taro-bot bot commented Mar 5, 2020

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@luckyadam
Copy link
Member

删掉 dist 重试即可

@yuyongyu08
Copy link
Author

试了,不可用。

⠸ 开始下载快应用运行容器...undefined:6
<!DOCTYPE html>
^

SyntaxError: Unexpected token < in JSON at position 5
    at JSON.parse (<anonymous>)
    at Request.request [as _callback] (/Users/yuyongyu/Documents/58/mini-program/mp-fang-ultimate/node_modules/@tarojs/cli/dist/util/dowload.js:28:30)
    at Request.self.callback (/Users/yuyongyu/Documents/58/mini-program/mp-fang-ultimate/node_modules/request/request.js:185:22)
    at Request.emit (events.js:198:13)
    at Request.<anonymous> (/Users/yuyongyu/Documents/58/mini-program/mp-fang-ultimate/node_modules/request/request.js:1161:10)
    at Request.emit (events.js:198:13)
    at IncomingMessage.<anonymous> (/Users/yuyongyu/Documents/58/mini-program/mp-fang-ultimate/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:286:20)
    at IncomingMessage.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

@yuyongyu08
Copy link
Author

应该是在校验容器时获取版本号的请求失败:https://api.github.com/repos/NervJS/quickapp-container/releases/latest。此接口返回404.

@yuyongyu08
Copy link
Author

应该是在校验容器时获取版本号的请求失败:https://api.github.com/repos/NervJS/quickapp-container/releases/latest。此接口返回404.

可能和公司网络有关,换成手机4G就行了。

@YoringChen
Copy link

有代理 github 的,关掉代理重试即可

@Chen-jj Chen-jj closed this as completed Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants