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)
![No description](https://cdn.answeroverflow.com/1175771233455980613/image.png)
17 Replies
![No description](https://cdn.answeroverflow.com/1175771384312516729/image.png)
![No description](https://cdn.answeroverflow.com/1175771477820321823/image.png)
Next.js
![No description](https://cdn.answeroverflow.com/1175794128739635242/image.png)
![No description](https://cdn.answeroverflow.com/1175794129008087100/image.png)
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?
![No description](https://cdn.answeroverflow.com/1175816730195546203/CleanShot_2023-11-19_at_16.15.49.png)
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
![No description](https://cdn.answeroverflow.com/1175840697476206682/image.png)
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