Closed wilsuriel03 closed 1 month ago
How did you mange to fix that? I'm having the same issue.
I was able to resolve the issue by excluding the /api/uploadthing endpoint from my middleware configuration. It seems the middleware was interfering with the callback request from UploadThing, causing the transport error. By excluding this specific route, the callback was able to complete without issues. If you're experiencing the same problem, check your middleware setup and try excluding the UploadThing API routes
I understand that this issue may be closed if it should be filed in another category
My issue
I'm experiencing an issue where UploadThing successfully uploads images, but the callback to my local application fails. As a result, uploaded images are not being reflected in my application's UI. The callback error indicates a transport issue when attempting to POST to http://localhost:3000/api/uploadthing.
Error Logs:
Environment:
Relevant Code Snippets:
1. app/api/uploadthing/core.ts:
2. app/api/uploadthing/route.ts:
3. app/_components/upload.tsx:
4. product-images.tsx: