[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
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...