Make sure you're allowing the txt extension in your Bucket settings.
Uncaught Appwrite\\AppwriteException: HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 5: Hypervisor
That was it - thank you!
Rank 5: Hypervisor
Well, I spoke too soon - the first error (HTTP/2 stream 0 was not closed cleanly) is back
Rank 5: Hypervisor
Sometimes the same file will upload one time and error another time
Rank 5: Hypervisor
Also, sometimes the upload seems to work, but the uploaded file is 0 bytes, and says the filename is "data://"
Rank 5: Hypervisor
It's detected the correct mime-type, though
Rank 5: Hypervisor
I'm checking the Appwrite logs to see if there's anything useful there. There's nothing at the time I make a request, but I did find a lot of these:
[Error] Timestamp: 2023-06-09T17:17:07+00:00
[Error] Type: Utopia\Exception
[Error] Message: Not Found
[Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
[Error] Line: 795
Admin
something seems to be closing the connection...maybe it's cloudflare...maybe it's appwrite 🤷🏼♂️
Rank 5: Hypervisor
And also this:
[2023-06-09 15:13:47 $9.0] WARNING Server::check_worker_exit_status(): worker(pid=12, id=0) abnormal exit, status=0, signal=11
A bug occurred in Swoole-v4.8.10, please report it.
The Swoole developers probably don't know about it,
and unless you report it, chances are it won't be fixed.
You can read How to report a bug doc before submitting any bug reports:
>> https://github.com/swoole/swoole-src/blob/master/.github/ISSUE.md
Please do not send bug reports in the mailing list or personal letters.
The issue page is also suitable to submit feature requests.
OS: Linux 5.15.83-1-pve #1 SMP PVE 5.15.83-1 (2022-12-15T00:00Z) x86_64
GCC_VERSION: 10.3.1 20211027
OPENSSL_VERSION: OpenSSL 1.1.1t 7 Feb 2023
PHP_VERSION : 8.0.18
Worker 1 started successfully
Rank 5: Hypervisor
Will try connecting directly
Admin
i've seen this when i try to use XDebug 👀 you're not running from source, right?
Rank 5: Hypervisor
Not sure what you mean by that - this is just a PHP webpage
Rank 5: Hypervisor
Oh that - that's from docker compose logs
Rank 5: Hypervisor
Seems to work perfectly when I point directly.
Admin
I meant running Appwrite from source
Admin
It must be cloudflare closing the connection form some reason
Rank 5: Hypervisor
I'm running Appwrite with docker compose - I installed with the docker run command on the self hosting page
Rank 5: Hypervisor
--volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ --entrypoint="install" \ appwrite/appwrite:1.3.6```Admin
Ah okay. It must be a cloudflare tunnel problem then
Rank 5: Hypervisor
Well, uploads are working. But when I tried downloading (with $storage->getFileDownload(), I just get what looks like a base64 string?
Rank 5: Hypervisor
I had a look at the getFileDownload() function, and I saw it sets a Content-type: application/json header. When I remove that, I get back the file.
Admin
oh that does sound like a bug
Rank 5: Hypervisor
Can confirm it's also in the Python SDK
Rank 5: Hypervisor
Also, when I download a file direct from the Appwrite dashboard, I get what looks like the same base64 string. The request from the dashboard does not contain a Content-type: application/json header
Admin
it might be best to create issues for this: 1 for the php sdk and another for the python sdk