Caused by: The replica returned an HTTP Error: Http Error: status 413 Payload Too Large, content type "text/plain; charset=utf-8", content: Request 0x873d0da0b95934042af97fe6d220608b3ce8aeb8aca343ef5f06a53c404d03c8 is too large. Message byte size 3687223 is larger than the max allowed 3670016.
This happens because we decompress wasms before uploading them but there is no need to do that.
Changes
Do not gunzip downloaded SNS wasms but upload the compressed wasms directly.
Update the wasm filenames in bin/sns_dfx.json to be what we actually store.
Tested
I tried running bin/dfx-sns-demo with these changes with IC commit d4ee25b0865e89d3eaac13a60f0016d5e3296b31 which caused the failures in https://github.com/dfinity/snsdemo/pull/400 and it no longer failed.
Motivation
https://github.com/dfinity/ic/commit/7f0f5d5d3f2d7a827158daf8b20530c81e3fd46c caused the uncompressed SNS governance wasm to be too large to be uploaded to SNS-W. This results in (logs):
when updating the IC commit.
This happens because we decompress wasms before uploading them but there is no need to do that.
Changes
gunzip
downloaded SNS wasms but upload the compressed wasms directly.bin/sns_dfx.json
to be what we actually store.Tested
I tried running
bin/dfx-sns-demo
with these changes with IC commitd4ee25b0865e89d3eaac13a60f0016d5e3296b31
which caused the failures in https://github.com/dfinity/snsdemo/pull/400 and it no longer failed.