[CLOSED] `HTTP/2 send again with decreased length` while file create in DO Spaces
- 0
- Self Hosted
I'm trying to create a function that generates a file and uploads it to storage. However, the file creation process is failing with an error (appwrite contaner log):
[Error] Timestamp: 2023-10-24T10:57:59+00:00
[Error] Method: POST
[Error] URL: /v1/storage/buckets/:bucketId/files
[Error] Type: Exception
[Error] Message: HTTP/2 send again with decreased length
[Error] File: /usr/src/code/vendor/utopia-php/storage/src/Storage/Device/S3.php
[Error] Line: 847
It appears that not all file creation operations trigger the error. Recently, I made a copy of the server, downloaded files from the old storage, and uploaded them to the new storage. I encountered this error for only one file, and I simply skipped it. All other files were uploaded without any problems.
If you interested here is part of python function that reproduce the error:
def make_sample(storage, context, video_id, input_file_name):
sample_id = video_id + "_scaled"
output_file_name = sample_id + ".mp4"
context.log("Scale video to " + sample_id)
os.system("ffmpeg -y -i " + input_file_name + " -ss 2 -crf 28 -vf scale=216:386 -an " + output_file_name)
context.log("Upload scaled video id " + sample_id)
storage.create_file(storage_id, sample_id, InputFile.from_path(output_file_name))
context.log("Remove scaled video id " + sample_id)
os.remove(output_file_name)
return sample_id
I use the static_ffmpeg Python package for it. Usually, the function works fine, so it should be a file. Encryption and antivirus are turned off.
This file
I triggered the function a couple of times and it fixed itself. Maybe problem somewhere else..
Can this be closed since it's working now?
Yep
[CLOSED] HTTP/2 send again with decreased length while file create in DO Spaces
Recommended threads
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...