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
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- 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...