Hey,
A user of mine found a really odd error.
When he tried to upload a specific image it returned the error âMaximum call stack size exceededâ
The way it works is, the image is sent to the cloud functions and we upload it through there because we like to do some verifications before adding it to the app.
The cloud function code is simply:
const image = request.params.image;
const imageArray = image.split(",");
const imageBase64 = imageArray[1];
const fileToSave = await Moralis.Cloud.toIpfs({
sourceType: "base64Binary",
source: imageBase64,
});
Image that returns the error: https://i.ibb.co/6v4BPrW/1.png