Uploadthing Unauthorized Error

UploadThing stopped working on my website. Initially got 500 Internal Server Error (couldn't reach https://uploadthing.com/api/prepareUpload). Generated new API keys, still same error. Deleted project, created new one, now getting 401 Unauthorized. Added new API keys to .env, followed docs, still not working. Same behavior in both production and localhost.

Core issues:
  1. Can't reach UploadThing API
  2. Unauthorized errors despite correct setup
Relevant code snippets:
  1. core.ts: Using createUploadthing, custom auth function, file router setup
  2. Component: Using UploadDropzone with error handling
  3. .env: UPLOADTHING_SECRET and UPLOADTHING_APP_ID set correctly
Steps taken:
  1. Regenerated API keys
  2. Created new project
  3. Double-checked .env and setup
Any help or troubleshooting steps appreciated. Full code below.
image.png
Was this page helpful?