{"code":"BadJsonBody","message":"Failed to buffer the request body: length limit exceeded"}
I initially tried using a Nextjs API route to call the api, and then call a Convex action to store each generated image. The issue is that the API returns images as base64 encoded strings. When I try to pass the string to the Convex action, some images will throw the following error and not get stored (seems like the image strings are too long):
I then tried creating a Convex action to make the API request directly in an action and store the images. However, if I try to generate and store more than ~3 images in a single request, calling the action from the client throws the following error:
The images get stored successfully, but because of the timeout, I'm not getting the return data to display.
Any suggestions for a better way to set this up?
