Closed PaulDotterer closed 10 months ago
Same issue for me. I'm basically trying to initialize appwrite in localhost like so:
import { Client, Account } from 'appwrite';
const client = new Client();
client.setEndpoint('https://localhost:3001/v1')
.setProject('xxxxxxx')
.setSelfSigned();
just like the documentation says: https://appwrite.io/docs/certificates
I'm running a next.js build and installed the latest appwrite with docker. But I'm keep getting the error: ".setSelfSigned is not a function" Tried installing openssl certificate too, tried re-installing and getting the latest appwrite (v.1.3.7). What else can I try? Or should I just forget about this working on a localhost? Any workarounds?
Same issue for me. I'm basically trying to initialize appwrite in localhost like so:
import { Client, Account } from 'appwrite'; const client = new Client(); client.setEndpoint('https://localhost:3001/v1') .setProject('xxxxxxx') .setSelfSigned();
just like the documentation says:
https://appwrite.io/docs/certificates
I'm running a next.js build and installed the latest appwrite with docker. But I'm keep getting the error:
".setSelfSigned is not a function"
Tried installing openssl certificate too, tried re-installing and getting the latest appwrite (v.1.3.7). What else can I try? Or should I just forget about this working on a localhost? Any workarounds?
@AttiZK As far as i can tell, the source code does not exist in the SDK to set this flag. I found a workaround tho. You can navigate in you browser to βhttps://localhostβ and accept the certificate error and then you you will be able to make client calls. It will only work in the browser you accepted the certificate since this action is scoped to the browser, Not the system. After every appwrite restart you need to redo this.
Well, that's something I can work with for now, thanks!
The response above is correct.
π Description
Thanks for Taking your time.
Im currently struggling to get the Appwrite web SDK to connect to my locally hosted Appwirte instance.
I spun up AppWrite inside Docker, and setup a new project "testing". When i try to sign in a user via the SKD, i get "404 | ERR_CERT_AUTHORITY_INVALID" When i try to set "setSelfSigned()" on the client i get the error "client.setEndpoint(...).setProject(...).setSelfSigned is not a function".
Here is my AppwriteService.js file:
I cant find any documentation on how to get this working. With the node-appwrite package it works like expected, but in the web SDK i cant get it working.
Im using SvelteKit 1.21.0 AppWrite Web SDK version 11.0.0
π Have you spent some time to check if this issue has been raised before?
π’ Have you read the Code of Conduct?