Subscription Error code: client.setSelfSigned(status: true); final realtime = Realtime(client); final subscription = realtime.subscribe(['account']);
error: AppwriteRealtime: Allow self-signed certificate subscription: wss://cloud.appwrite.io/v1/realtime?project=64d69783f20b0ed93006&channels%5B%5D=account
please help me to solve this issue
You have setselfsigned set to true
That's not needed in cloud
So you should remove that line
Thanks😆 (removed setselfsigned) error (AppwriteRealtime: Allow self-signed certificate) gone but
subscription: wss://cloud.appwrite.io/v1/realtime?project=64d69783f20b0ed93006&channels%5B%5D=account
still persist
wss is not http
replace wss with https
When you set the endpoint
server endpoint--'https://cloud.appwrite.io/v1'
So althought that you get the error?
What's the code?
same as in sample code
final client = Client() .setEndpoint('https://cloud.appwrite.io/v1') .setProject('[PROJECT_ID]');
final realtime = Realtime(client);
final subscription = realtime.subscribe(['account']);
subscription.stream.listen((response) { // Callback will be executed on all account events. print(response); })
as per doc--default the endpoint is wss://cloud.appwrite.io/v1/realtime
what's the error?
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.
flutter: subscription: wss://cloud.appwrite.io/v1/realtime?project=64d69783f20b0ed93006&channels%5B%5D=account
that's not an error...
ok
Thanks for the quick response🙂
[Solved] Error AppwriteRealtime: Allow self-signed certificate
Recommended threads
- Current User is Not authorized
recreating same Thread
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...