Status Code: 500 when trying to delete image, through Admin API
Hello,
I am using firebase cloud functions with node.js for server and NextJs for the client and trying to delete an image through Admin API with "delete_resources" method, but the server responds with 500.
The way I am trying to make the delete request.
const cloudinary = require("cloudinary").v2;
PAYLOAD DATA:cloudinary.config({cloud_name:"ksfurniture",api_key:"*******",api_secret:"*******",secure:true,});
cloudinary.config({secure:true,});
[
"0x0_thcewd"
]
const result = cloudinary.v2.api.delete_resources(public_ids, {resource_type: 'image'})
-
Hi Alen. Danny from the Support team here.
Looking at our logs, I can only see a single delete request from you in the last seven days, and that was a failed request for "36ff736adf2bd133fc4cb3b12afdbafc_on1p8l" on 19th December at 09:17:51 UTC.
It seems that the request for "0x0_thcewd" didn't make it through to us, so I would suggest logging out the different stages of the request to track down where it might be going wrong.
I hope this helps. Please let us know how you get on by replying here, or for added privacy, you're welcome to raise a support request here.
Thanks,
-Danny0
Post is closed for comments.
Comments
1 comment