Was trying to call the getAssets method of the ICPets canister in JS and am getting the following error:
IC0504: Canister unssi-hiaaa-aaaah-qcmya-cai violated contract: ic0.msg_reply_data_append: application payload size (276532474) cannot be larger than 3145728
Seeing the same error when viewing the method here: Principal unssi-hiaaa-aaaah-qcmya-cai | ic.rocks
I believe the solution is to use HTTP streaming to chunk the data as discussed in this thread: Simplest example of http streaming chunks in Motoko. However, according to this code comment it doesn’t appear that functionality has been added to the the
@definity/agent package yet.