Invalid Signatue ,String to sign... can someone explain me why is this happening??
const cloudinary=require('cloudinary').v2;
const { CloudinaryStorage} =require('multer-storage-cloudinary');
cloudinary.config({
cloud_name:process.env.CLOUDINARY_CLOUD_NAME,
api_key:process.env.CLOUDINARY_KEY,
api_secret:process.env.CLOUDINARY_SECRET
});
const storage=new CloudinaryStorage({
cloudinary,
params:{
folder:'YelpCamp',
allowedFormats:['jpeg','png','jpg']
}
})
module.exports={
cloudinary,
storage
}
i dont know why I am getting this error. its working perfectly fine in local host but after I hosted the website this error start occuring .
i
1
-
Hi Rishi,
I suspect there is an issue with the process.env.CLOUDINARY_SECRET assignment in your remote environment. Can you try hardcoding the API Secret value which can be found in your Cloudinary Dashboard? This would be a temporary step to see if it solves the problem.We have seen cases like these in the past and usually it is a simple fix: https://support.cloudinary.com/hc/en-us/community/posts/360010327340-Invalid-Signature-String-to-sign
Thanks,
EitanCreative Automation Architect,
Cloudinary0
Post is closed for comments.
Comments
1 comment