CLOUDINARY_URL not working with Nestjs.
Hey,
I am using coudinary with `multter-store-cloudinary` npm package and it was working perfectly fine until recently.
To set the configuration parameters I was setting it to enviornment varialble CLOUDINARY_URL. But it seems like now it's not picking up credentials from this variable. I didn't change anything in the relevant code and also I updated some other packages with not directly related.
I am getting below error:
Must supply api_key
I already checked the env variable. It does contain the value. If I adding config in directly then it works but I would like to the way it was using CLOUDINARY_URL env variable.
Any help would be appreciated. Thanks
"cloudinary": "^1.25.1",
"multer-storage-cloudinary": "^4.0.0",
-
Hi @Abrar Dev,
I see that you raised this in a GitHub thread so I'll link to it from here for reference:
https://github.com/cloudinary/cloudinary_npm/issues/4840 -
The issue was closed before a solution was provided. I have the same problem. The `CLOUDINARY_URL` environment variable is printed one `console.log("process.env.CLOUDINARY_URL")`, but I still get the `Must supply api_key` error.
0 -
Hi @Gary,
It looks like the @Abrar Dev marked the GitHub thread as closed - perhaps he was able to find the reason the value of the Environment variable was inaccessible. If you're seeing this issue then please feel free to re-open the GitHub thread with more details. Generally, the Cloudinary NPM package hasn't had any updates affecting the CLOUDINARY_URL and how that is picked up, but if you're seeing this issue with "multer-storage-cloudinary" then perhaps @Abrar Dev will be able to share any insights from his investigation.
0
Post is closed for comments.
Comments
3 comments