
Hi there,
I am currently using the SDK of .NET and I am facing an issue when using the GetFileDownload
-function.
Whenever I use the function I get a null
-value as return.
Appwrite.Models.File fileTest = await storage.GetFile(bucketId: bucketId,fileId: image.OriginalFileId);
byte[] originalImage = await storage.GetFileDownload(bucketId: bucketId,fileId: image.OriginalFileId);
To narrow it down, I used the GetFile
-function as well (as you can see above) and I am getting a correct response, with all the file details such as filename etc. The file has authorized the user to read, update and delete (authentication using JWT).
In the appwrite logs I am getting the error:
[Error] Message: Storage bucket with the requested ID could not be found.
[Error] File: /usr/src/code/app/controllers/api/storage.php
[Error] Line: 1014
In the GetFileDownload
-function itself in the SDK I don't see the URL-parameter projectId passing.
A general question: Does anyone know, how I can debug the .NET SDK?
BTW: I already tried to contribute by creating an PR for an other issue, but there is little movement in that repository.

For your PR, I suggest posting in #👷│maintainers about it to remind us about it. Im not so good at looking at PRs

@Aditya Oberai have you noticed any problems with downloading file using the dotnet SDK?
Recommended threads
- Error
I'm trying to get sellerId using account.get() in my appwrite function and this is the error message I'm getting: "Failed to send notification to seller 6865bf...
- Is there a timeframe for updating dart r...
Dart 3.5 is already one year old, and the following versions have introduced very important features for the language. Is there a roadmap or timeframe for when...
- list() is very slow; eventually shows no...
When I use the web browser to view the collections in my database, the documents they contain are normally displayed within a few seconds. For a few days now, h...
