You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Error: A Cloudinary API Key is required for signed requests, please make sure your environment variable is set and configured in your environment."
#241
Open
tmorgan497 opened this issue
Oct 5, 2024
· 4 comments
· Fixed by #245 · May be fixed by #246
But the error I'm getting from the widget says I need to set my api key. But i've already verified that the key is setup and working with the debugging code above. Here's my nuxt config:
It's probably a simple mistake, but I can't for the life of me figure out how to get it to work properly. I've tried unsigned mode and it works fine, but I'd like to use signed mode for better access control.
The text was updated successfully, but these errors were encountered:
Hey, I have released a 3.1.1 patch version with a fix for that. The issue was that the second object in the getUploadWidgetOptions from cloudinary url loader was expecting an apiKey as well.
Could you try with this version? I tried it locally with your code and seemed to work correctly :)
It works fine on my local machine now, but when I deploy it, it doesn't work. However, I've recently learned of the limitations of Cloudflare Workers (this app is deployed to Cloudflare Pages), so it could be because of that. I'm working on switching off of Workers anyways. But regarding the original issue, I believe it's fixed now. Thanks for your help!
And if you're curious, here's the error log from Workers:
10:07:15.205
POST 500 /api/products/get_cloudinary_signature
[nuxt] [request error] [unhandled] [500],Cannot read properties of undefined (reading 'node')
at chunks/_/cloudinary.mjs:1:145243
at chunks/_/cloudinary.mjs:1:170025
I'm running into an issue getting the CldUploadWidget to work in signed mode. On the client side I have:
and my backend endpoint I have:
When i manually get the signature from the endpoint, it works fine. The console logs show the api secret and the resulting signature
But the error I'm getting from the widget says I need to set my api key. But i've already verified that the key is setup and working with the debugging code above. Here's my nuxt config:
It's probably a simple mistake, but I can't for the life of me figure out how to get it to work properly. I've tried unsigned mode and it works fine, but I'd like to use signed mode for better access control.
The text was updated successfully, but these errors were encountered: