Skip to content
Back

Bug in console sdk?

  • 0
  • React Native
  • Cloud
Axistro
29 Jan, 2026, 10:40

Got bored and trying to make the native version of appwrite console. (Yes the console sdk does bundle with RN expo) Everything going file except image loading for the projects. Example: Sites Screenshots

TypeScript
url = consoleSdk.storage.getFilePreview({
        bucketId: 'screenshots',
        fileId,
        width: 1024,
        height: 576,
        output: 'png'
      });

this is how I am fetching the url.( I also tried with getFileView() the url retured is being loaded like this

TypeScript
                   <Image 
                      source={{ uri: screenshotUrl }} 
                      style={{  height: 175,borderRadius:10 }}
                      resizeMode="contain"
                    />

I can see a 404 error on the native app

TypeScript

although same image loads on the browser with the url link I think this is an authentication issue. cause I see a similar 404 error on incognito mode. any workaround for this? https://github.com/imtia33/Appwrite-Native/blob/main/components/ProjectScreens/sites/sites.jsx here is the repo if you want some deep dive .

TL;DR
Developers building a native app using Appwrite console SDK are facing a bug related to image loading, resulting in a 404 error. The issue seems to stem from an authentication problem. To work around this, developers can try setting up authentication or adjust the file permissions. An example code snippet and the GitHub repository for reference are provided.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more