@heldrida I replied in that thread
But the 500 error may be because your canister is not optimized. Do you run binaryen or ic-cdk-optimizer?