Bench update say An Error occurred while downloading assets... when bench build start

Hi

When I do bench update as usual, I noticed error message shows below

Building assets...
$ bench build
An Error occurred while downloading assets...
yarn run v1.22.10
$ FRAPPE_ENV=production node rollup/build.js
Production mode
✔ Built js/moment-bundle.min.js
✔ Built js/libs.min.js

I searched furnm , someone said process will try to download assets from http://assets.frappeframework.com
I checked that URL via browser, I got certification issue and has been refused.
not sure if it is the reason why bench build can’t download assets.

Thanks.

no, just ensure your running machine can access internet, or if you would like to test, you can execute:

wget http://assets.frappeframework.com/df0143f9482908ee3a0d052803b7aa88dbe97f01.tar.gz

to test it can download or not.

sometimes the that packages can’t download and will show this error, but the bench command will go back to use local assets package for build, so it should no harm.

1 Like

Thanks for the explain. I’m okay with.

Faced the same error and after doing as explained above, it downloaded the files but on bench build the error occurred again… Is this something to worry me or can I safely ignore this error…?

I guess you can safely ignore it, sometimes it will shows download failed, and as explain, it will use the version that you have download before for build.

unless asset package has major change, otherwise it should no problem. at least I haven’t face problem yet, I always use development version currently

Have a look also into the following discussion: $ bench build An Error occurred while downloading assets - #5 by gavindsouza

These errors come up if you’re running on an untagged commit of a stable branch

and the following PR: feat: Ship built assets by gavindsouza · Pull Request #11436 · frappe/frappe · GitHub

  • During the execution of bench build , Frappe will first try retrieving assets for itself if they are available.
  • In case of unavailability or network failures, assets will be built locally (as it always has) as a fallback.
  • Assets for stable releases are automatically generated and attached as assets to the releases as https://github.com/frappe/frappe/releases/{release_tag}/assets.tar.gz .