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

Updating my app.js & app.css on theme watch/deploy supposedly fails, but reflects success on the actual storefront #857

Closed
smjeffries-snap opened this issue Dec 2, 2020 · 9 comments · Fixed by #864

Comments

@smjeffries-snap
Copy link

smjeffries-snap commented Dec 2, 2020

Describe the bug
I am using Laravel Mix to compile all my JavaScript/CSS into one file each.

I run theme watch to detect the newest changes in my compiled JavaScript/CSS (deploy to manually push changes). However, since updating to 1.1.3 this morning, the log keeps reporting failure of the app.js & app.css specifically, even though I am successfully seeing the changes in the browser.

Liquid files still show successful update as expected.

11:47:01 [development] processing assets/app.js
[development] (assets/app.js) request failed after 5 retries

To Reproduce
Steps to reproduce the behavior:

  1. run command 'theme deploy' or 'theme watch' with a new version of a js and/or css file in the assets directory

Expected behavior
ThemeKit to report a successful update upon theme watch/deploy.

eg.

11:47:01 [development] processing assets/app.js
[development] (assets/app.js) Updated assets/app.js

Environment:

  • OS: Ubuntu 20.04.1 LTS
  • Themekit version: 1.1.3
  • Editor: PhpStorm
  • Ignore: What's this for?
@efekurnaz
Copy link

Same issue here. Development build script was more than 4mb and request keep failing. On production build, ~400kb, it was okay.

Seems like uploading operation is timing out on large files.

To downgrade: theme update --version=v1.1.2

@kellyvaughn
Copy link

Same issue, only fails even on attempting to run theme watch where I'm not trying to deploy large files.

@tanema
Copy link
Contributor

tanema commented Dec 3, 2020

Hi everyone, I am looking into this. @kellyvaughn is the theme that you are running theme watch on large in general?

In the most recent release, I added a bunch of timeout settings to try to make hanging requests fail fast however it might have caused requests for large assets to fail now. I will have a test release for you to try in a moment.

@davidmartel73
Copy link

davidmartel73 commented Dec 3, 2020

Same issue here, @tanema It's only 40kb - sections/header.liquid

image

@tanema
Copy link
Contributor

tanema commented Dec 3, 2020

Hello everyone, please try updating to my fix for this issue theme update --version=v1.1.4-issue857 and let me know if it works.

@kellyvaughn
Copy link

@tanema This version works for me!

@davidmartel73
Copy link

@tanema It is working now! Thanks for your quick fix.

@tanema
Copy link
Contributor

tanema commented Dec 3, 2020

Thanks for confirming, I will push out 1.1.4 soon as it has a couple quick fixes from 1.1.3 😬

@smjeffries-snap
Copy link
Author

Thanks for confirming, I will push out 1.1.4 soon as it has a couple quick fixes from 1.1.3

Mate, you're a legend 😎

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

Successfully merging a pull request may close this issue.

5 participants