无法从响应正文中解组 JSON - 主题套件收到 HTML 错误页面

发布于 2025-01-20 13:08:24 字数 1051 浏览 2 评论 0原文

我正在开发shopify电子商务应用程序,我使用yarn dev命令将更改推送到主题。 yarn dev 命令在后台执行 cross-env NODE_ENV=development Yarn clean &&纱线 webpack &&纱线部署:live &&纱线手表

但是,突然之间,我收到以下错误作为 yarn dev 的输出,因为我无法部署我的更改并更新主题:

Build completed in 0s
228 assets
1998 modules
49 WARNINGS in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack 5.52.0 compiled with 49 warnings in 89350 ms
$ theme deploy -d dist --allow-live
[development] 281|281 [============]  100 %
[development] 281 files, Updated: 7, No Change: 274, Errored: 5
[development] Errors encountered:
[development] (assets/account.js) could not unmarshal JSON from response body
This usually means Theme Kit received an HTML error page.
Http Response Status: 403
Request ID: 
ResponseBody: /tmp/themekit-response-565225865.txt

从上面的错误中,我可以看到 281 个文件有 7 个文件已更新274 个文件无更改5 个文件错误。那么有没有办法追踪这5个错误的文件呢?

I am working on shopify e-commerce app where I use yarn dev command to push the changes to theme. yarn dev command under the hood executes cross-env NODE_ENV=development yarn clean && yarn webpack && yarn deploy:live && yarn watch.

However, all of sudden I am getting below error as an output of yarn dev because of which I am unable to deploy my changes and update theme:

Build completed in 0s
228 assets
1998 modules
49 WARNINGS in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack 5.52.0 compiled with 49 warnings in 89350 ms
$ theme deploy -d dist --allow-live
[development] 281|281 [============]  100 %
[development] 281 files, Updated: 7, No Change: 274, Errored: 5
[development] Errors encountered:
[development] (assets/account.js) could not unmarshal JSON from response body
This usually means Theme Kit received an HTML error page.
Http Response Status: 403
Request ID: 
ResponseBody: /tmp/themekit-response-565225865.txt

From the above error, I can see that out of 281 files there are 7 files Updated, 274 files with No Change and 5 files as Errored. So is there any way to track these 5 errored files?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文