无法从响应正文中解组 JSON - 主题套件收到 HTML 错误页面
我正在开发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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论