pingdotgg / uploadthing

File uploads for modern web devs
https://uploadthing.com
MIT License
3.87k stars 282 forks source link

[bug]: Fiber Failure #777

Closed acosendey closed 3 months ago

acosendey commented 4 months ago

Provide environment information

System:
    OS: Windows 11 10.0.26100
    CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz
    Memory: 4.94 GB / 31.79 GB
  Binaries:
    Node: 20.12.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.5.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.0.2 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (125.0.2492.1)
    Internet Explorer: 11.0.26100.1
  npmPackages:
    @uploadthing/react: ^6.5.0 => 6.5.0
    typescript: ^5.4.5 => 5.4.5
    uploadthing: ^6.10.0 => 6.10.0

Describe the bug

image

I've finished the t3gallery demo and it was working fine, but after the uploadthing update the demo stopped working.

Link to reproduction

https://github.com/acosendey/logic-boards

To reproduce

ℹ UPLOADTHING 17:24:11 UploadThing dev server is now running! ⨯ UPLOADTHING 17:24:11 An error occured in your middleware function User does not have permission to upload ⨯ UPLOADTHING 17:24:11 at Object.eval [as middleware] (webpack-internal:///(rsc)/./src/app/api/uploadthing/core.ts:40:77) ⨯ UPLOADTHING 17:24:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error uploading file User does not have permission to upload

Additional information

My T3 gallery: Feel free to compare the T3 gallery with my repo. I can't see where I messed up, so any feedback is appreciated.

👨‍👧‍👦 Contributing

Code of Conduct

adesugbaa commented 3 months ago

Same issue - the errors reported on the client is a generic message to report the issue/failure to UploadThing rather than the actual cause of the error. Had to revert to 6.9.0 to get errors although the message for file size exceeded is also strange - Unable to get presigned urls

juliusmarminge commented 3 months ago

Looking into this now

juliusmarminge commented 3 months ago

do you have a smaller repro? seems like your repo requires api keys for like 10 services

juliusmarminge commented 3 months ago

after removing some services i was able to upload successfully: CleanShot 2024-05-06 at 15 09 41@2x

so a smaller repro with steps on how to run into the error would be appreicated

D4nGuerrero commented 3 months ago

after removing some services i was able to upload successfully: CleanShot 2024-05-06 at 15 09 41@2x

so a smaller repro with steps on how to run into the error would be appreicated

Intentionally upload an invalid type or size (to test onUploadError). Client gets generic message like adesugbaa mentioned.

Barebones: image