[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
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...
- Error getting preview of file
Rest Response: ``` { "message": "Server Error", "code": 500, "type": "general_unknown", "version": "1.8.1" } ``` Appwrite Logs ``` appwrite ...