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
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- Websocket error Realtime
Hi peeps, I am trying to create realtime updates and I am having websocket error Code is below this msg