BAD_REQUEST | { error: 'Invalid API key' }
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=
I saved the API key you gave in the .env file.
UPLOADTHING_SECRET=
I entered UPLOADTHING_APP_ID= but I get { error: 'Invalid API key' } error (BAD_REQUEST | cannot retrieve pre-signed URLs)
17 Replies
Next.js
you don't want the ***
you want the actual key
(assuming you didn't just replace it to post in here)
I did everything in the document correctly, but it gives this error. I still don't know why and from which line it gives, please help me.
so when you're copying your api key, did you press the copy button or just copied the text manually?
do you have all the
****
in the .env file or is that just some extension that hides the actual value?I pressed the copy button
I have to cancel my project, I couldn't solve this error
^^^^
extension that hides real value
In this way
And what framework are you using? Are you sure the variables are loaded
Cause i’d imagine they arent or Else you wouldnt get that error if you sent a valid api key
Yes, I checked all of them again and again, there is no problem. Could uploadthing be a problem?
Dont see how. Can you DM me appId and api key?
I’ll check it
google console
Sure