-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Presence enter error coming #664
Comments
Hello @gouravgupta72. You need to provide a
|
Hi I tried subscribe channel and then enter presence still getting the same error, we are using token authentication. guard let channel = self.channel else { return }
|
@gouravgupta72 Thanks for getting in touch. A few questions. Enable loggingCan you please enable a more verbose logging to see what's going on?
Log errors (if any)Can you please check if there's any error along the way? E.g.
Provide a clientIdDoes your instance of
|
hey, |
Hi Folks, When i'm trying to update user presence from my code no action is having, when doing the same from ably consol it's working fine. let channel = realtime.channels.get("ate-dad-fly") Can you please help me in getting update user presence? |
@gouravgupta72 your code looks fine. For sake of completeness it should be something like
Are you using the same api key both in your code and in the Ably console? |
We are doing authentication using JWT token, so in app i can't assign clientId, when i'm trying to do so it is not getting connected to chat. |
@gouravgupta72 With JWT you can use a clientId. See the documentation here: https://www.ably.io/tutorials/jwt-authentication UPDATE: The key for the clientId in the JWT claim is |
Hey @funkyboy , this is the debug log we are getting "token":{"token":"key_name-S3bidW4uF8zqqm_AwKRXPNQdvR7QCOoryx9ocl62tXhTiRWRqwkSUpqSDmCjAMoqOhA9HezDHtRN2kTqlbGfghpNjolzb4WYwWolSMAL4FlJ749thea6d4BtVAjxyfAXf559_DA---SrFNgUSoyUA","keyName":"key_name.P__eEQ","issued":1533624962493,"expires":1533628562493,"capability":"{"*":["publish","subscribe"]}","clientId":"Bob"}} It is showing that client id is assign to my token, but when i'm trying to enter my presence i'm still not able to see it in dev consol. Only 1 member is showing for which i added presence from dev consol. |
@gouravgupta72 I think that's because you don't have capabilities for presence. See docs here: https://www.ably.io/documentation/general/authentication#capabilities-explained
|
Thanks for the help. It worked. |
Hi Folks,
When i'm calling enter presence then it is giving an error
presence.enter(nil) { error in
guard error == nil else {
self.signalError(error!)
return
}
}
ARTErrorInfo with code 13, message: attempted to publish presence message without clientId, reason: (null)
The text was updated successfully, but these errors were encountered: