Open
Description
Another case of bad error message feedback.
No logs other than the REST API giving terrible error message and a whole bunch of Googling has to be done.
In my case I tried to upload an image through the rest API using POST to /rest/V1/products/<sku>/media
The issue has to do with products having required fields that are not filled in. This could arise after changing attribute sets and not going back to fix it on old products for example.
The solution is to go into admin, filling in the required fields for the product, then trying to upload the image again.
Preconditions (*)
- Magento 2.3.3
Steps to reproduce (*)
- Have required fields on product that are not filled in
- Try to upload image using REST API
Expected result (*)
- Better error message that is actually helpful.
- Log output in var/log
Actual result (*)
- Terrible error message.
- No logs
- Not being able to upload the product image
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Ready for Grooming