[solved] File Upload from Rust Code returns 500 Internal Error at last chunk
- 0
- Self Hosted
- Storage
- REST API
Warning: file_get_contents(/storage/uploads/app-650f0846f11fae53fe7c/651155e99b8b3b3523d4/tmp_66265f0a6129adc5a67a.mp4/66265f0a6129adc5a67a.part.79): Failed to open stream: No such file or directory in /usr/src/code/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 181
[Error] Timestamp: 2024-04-22T12:59:03+00:00
[Error] Method: POST
[Error] URL: /v1/storage/buckets/:bucketId/files
[Error] Type: Exception
[Error] Message: Failed to read chunk /storage/uploads/app-650f0846f11fae53fe7c/651155e99b8b3b3523d4/tmp_66265f0a6129adc5a67a.mp4/66265f0a6129adc5a67a.part.79
[Error] File: /usr/src/code/vendor/utopia-php/storage/src/Storage/Device/Local.php
[Error] Line: 183
this is what my Appwrite Docker Container returns as log. The file is round about 300mb big and the error always appears at the last chunk.
I have no idea what can create this error by looking at the loggings. I added Error handling to my rust code and get this error:
worker::video_cutter: Failed to upload chunk: HTTP 500 Internal Server Error - {"message":"Server Error","code":500,"type":"general_unknown","version":"1.5.4"}
Any tips for debugging is highly appreciated.
ok found the error I think. Thanks to the great feature of looking through Discord conversations over the appwirte website I found the bug report about "content-range end should be 1 less than file size" And of course was the error that my limits where not -1.
[solved] File Upload from Rust Code returns 500 Internal Error at last chunk
Recommended threads
- TOO_MANY_REDIRECTS after temporarily ena...
I am losing my mind over this, I enabled this setting because I was having issues with sites not making links with https. I enabled it, ran into issues, so I di...
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...