Failure in building package via curl command (503), but successful when build from /crx/packmgr. Is there any size limit only for curl commands?
I am trying to create, update and build a package using curl commands, but build steps fail with response curl: (22) The requested URL returned error: 503
On /crx/packmgr when I check it shows package last built time stamp, but even on retrying build fails.
On building directly from /crx/packmgr build is successful in nearly 75s
Package size - 25.3 MB
Here are my curl commands:
curl --fail -u "$AUTH_USERNAME":"$AUTH_PASSWORD" -X POST $STG/crx/packmgr/update.jsp -F path=/etc/packages/my_packages/content-sync.zip -F packageName=content-sync -F groupName=my_packages -F filter="[{\"root\":\"/content/abc/website\", \"rules\":[{\"modifier\" : \"exclude\", \"pattern\" : \"/content/abc/website/de\"},{\"modifier\" : \"exclude\", \"pattern\" : \"/content/abc/website/ef\"} ] } ]" -F '_charset_=UTF-8'
Response - {"success":true,"msg":"Package updated successfully","path":"/etc/packages/my_packages/content-sync.zip"}
curl --fail --retry 2 --retry-delay 100 -u "$AUTH_USERNAME":"$AUTH_PASSWORD" -X POST $STG/crx/packmgr/service/.json/etc/packages/my_packages/content-sync.zip?cmd=build
Response -
curl: (22) The requested URL returned error: 503
Warning: Transient problem: HTTP error Will retry in 100 seconds. 2 retries
Warning: left.
curl: (22) The requested URL returned error: 503
Warning: Transient problem: HTTP error Will retry in 100 seconds. 1 retries
Warning: left.
curl: (22) The requested URL returned error: 503
Is there any size limit only for curl commands? or any other way to do this?