dub icon indicating copy to clipboard operation
dub copied to clipboard

"Body exceeded 1500kb limit" error when I add an image to a link

Open max-samusevich opened this issue 10 months ago • 1 comments

Hello! I have a custom domain, I set it and tried to create a first link. If I add an image (a link preview) to the link, I get a push notification "Body exceeded 1500kb limit" (attached image 1) and can't save the link. If I create a link without an image, the link is being saved and works fine. I tried to reload page with cache clearing, it doesn't help. I tried a few images, 1.2mb, 2.3mb, the result is the same even if the limit for an image size is 5mb.

In the Network tab of Chrome Dev Tools I see that the image I try to add as a link preview is loaded as base64 with 200 code with a "from memory cache" remark (attached image 2).

I also see a stack of errors in the Console and the Network tabs: 2 things about favicons that are appearing again and again with time with 301 and 404 codes (attached image 2), and PUT requests with 413 errors when I click a button to save the link with the link preview image (attached image 3).

What are these errors and how to fix them? How to add images to links?

2023-10-23_15-09-45

2023-10-23_15-33-18

2023-10-23_15-21-12

max-samusevich avatar Oct 23 '23 11:10 max-samusevich

This is a bug, will fix – thank you!

steven-tey avatar Oct 24 '23 16:10 steven-tey