Skip to content

πŸ› Bug Report: Get file, url query 'project' as undefinedΒ #111

@0x0bit

Description

@0x0bit

πŸ‘Ÿ Reproduction steps

const files = await databases.listDocuments(
  appwriteConfig.databaseId,
  appwriteConfig.filesCollectionId,
  queries
);

node-appwrite version ^17.0.0, Use databases.listDocument to obtain the file list, and the query parameter project of the returned file access path is undefined, eg:

{
  url: 'https://fra.cloud.appwrite.io/v1/storage/buckets/xxxxx/files/xxx/view?project=undefined'
}

which will result in the file being inaccessible

πŸ‘ Expected behavior

url query params project is not undefined

πŸ‘Ž Actual Behavior

url query params project is undefined

🎲 Appwrite version

"node-appwrite": "^17.0.0",

πŸ’» Operating system

MacOS

🧱 Your Environment

No response

πŸ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏒 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions