Skip to content
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

Private channel subscription failed #303

Open
MosesWangira opened this issue Sep 24, 2021 · 4 comments
Open

Private channel subscription failed #303

MosesWangira opened this issue Sep 24, 2021 · 4 comments

Comments

@MosesWangira
Copy link

MosesWangira commented Sep 24, 2021

What is the issue?

I cannot subscribe to private channel. Tried all the solutions online but still it isn't working
...

Is it a crash report? Submit stack traces or anything that you think would help

error produced - com.pusher.client.AuthorizationFailureException:
code - 403
My gist link of the code I used - https://gist.github.com/MosesWangira/6b388678d928f84ba57ad48b16833a08

...

Any improvements you suggest

provide message why subscription failed. The message is always empty.
...


CC @pusher/mobile

@benw-pusher
Copy link

benw-pusher commented Sep 24, 2021

When subscribing to Private Channels we expose a method to catch when authentication failed. You can use this to log out the reason for the failure. See the example in the Readme for how to implement.

@MosesWangira
Copy link
Author

What is the issue?

I cannot subscribe to private channel. Tried all the solutions online but still it isn't working
...

Is it a crash report? Submit stack traces or anything that you think would help

error produced - com.pusher.client.AuthorizationFailureException:
code - 403
My gist link of the code I used - https://gist.github.com/MosesWangira/6b388678d928f84ba57ad48b16833a08

...

Any improvements you suggest

provide message why subscription failed. The message is always empty.
...

CC @pusher/mobile

@MosesWangira
Copy link
Author

I have used it on the gist provided above but the message is empty
https://gist.github.com/MosesWangira/6b388678d928f84ba57ad48b16833a08

actually my main issue is why it is not subscribing to the private channel. What am I missing??

@benw-pusher
Copy link

Code 403 would indicate that the issue is that the auth endpoint received the request but refuses to authorize it. You may need to check your auth endpoint logs to find out why the webserver/application is rejecting the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants