Skip to content
Back

Property 'setSelfSigned' does not exist on type 'Client'.

  • 0
  • Self Hosted
  • React Native
LeanderM
6 Nov, 2024, 20:16

I cannot figure out how to use setSelfSigned(true) with my React Native client... it simply doesn't exist on any client. Tried the web client as well in a different app.

TL;DR
Developers are having trouble connecting their Android app built with Ionic and React to Appwrite. They are trying to implement offline communication without a cloud instance of Appwrite. The issue seems to be related to self-signed certificates and connecting to Appwrite running in Docker on a Macbook. The 'setSelfSigned' method is mentioned, but it appears to be available only on server-side SDKs like `node-appwrite`.
Kenny
6 Nov, 2024, 20:28

I believe setSelfSigned in only avaliable on server side sdks like node-appwrite

LeanderM
6 Nov, 2024, 20:42

Hm. Appwrite is running in docker on my Macbook. I cannot access any files in my bucket from my client React Native app. Client is on the same Wi-Fi network.

For example a file url like https://192.168.2.15/v1/storage/buckets/audio/files/......etc

Will give me "java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

Steven
6 Nov, 2024, 23:57

i suggest either use HTTP instead of HTTPS or google how to handle self-signed certificates in react native

LeanderM
8 Nov, 2024, 01:13

Sorry, I'm still a bit lost on this topic. I've switched to Ionic with React to create an Android app.

I simply can't get my app to connect with Appwrite. Realtime does not work nor do file URLs like the one above.

Am I right that i should self sign the certificate and set up Appwrite docker with this certificate. And also install the certificate on the client devices?

(I need complete off-line communication, so no cloud instance of Appwrite).

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