Closed mrjoops closed 10 months ago
This 413 error code seems to caused by nginx when an image above 5MB was posted, could that have been your case? I guess we could increase the limit.
Well, no, the image is just above 3MB.
Here is the entity I try to update : https://inventaire.io/entity/isbn:9782356741080 And here is the image https://www.danielmaghen-editions.com/wp-content/uploads/2021/11/TER-INTE%CC%81GRALE-SITE.jpg (I tried to download it locally before and re-upload it, same error)
Nice, I was able to reproduce the problem: it was indeed an issue with nginx client_max_body_size
that was set to 5MB
, combined with fact that the 3MB image was converted to 7MB base64 data. Increasing the value of client_max_body_size
seems to have resolved the case above, but it would be nice to have a more helpful error message for images that are over the new threshold.
For a few days (less than a week), I get an error when adding a cover and the cover is not added.
I use Firefox and here is what the console displays: