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 channel not return wrong auth string. #14
Comments
Totally forgot about this. Did you manage to solve it? |
Closing due to inactivity. |
I am having the exact same issue. Was there any solution to this? |
Hi, I can't remember exactly since it has been too long. But be sure to check all your input parameters by log it out.. |
same problem that @jinxuanw-clairvoyant |
Hey, I'll look into this tomorrow afternoon. Please provide me with as much detail as possible in the meantime! Specifically, which version of the library you're using, how you're creating the authentication endpoint, etc. Reopening due to the issue still being relevant. |
Forgot to report back but in my case I believe I had the debugbar package enabled which was throwing a lot of its own code too. Once I disabled debugbar it worked fine. The colon in auth string wasn't an issue. |
Can anyone else confirm that they're having this same issue for the same reason as @saleemepoch lists? |
Closing due to inactivity |
Any solution to this? |
According to pusher(https://pusher.com/docs/channels/library_auth_reference/auth-signatures#worked-example) The auth response should be a JSON string with an auth property with a value composed of the application key and the authentication signature separated by a colon ':' as follows: {"auth":"278d425bdf160c739803:58df8b0c36d6982b82c3ecf6b4662e34fe8c25bba48f5369f135bf843651c3a4"} if the auth key starts with just colon that probably means the pusher object was created without providing proper api keys. (i forgot to add the API keys to my environment file and i had the same issue and after providing the keys it worked) |
I'm trying to build a presence channel. But the auth string returned is not correct.
Here is the back end code:
Error message
Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":null,"message":"Auth value for subscription to presence-5 is invalid: should be of format 'key:signature'"}}}
I guess the the error is caused by the additional ':' added before the auth string. Here is my string output:
{auth: ":8dacf362f8fe62bae42c33dfe5511d3d1c42144685d5843a6a6a8014490ed0f6",…}
The text was updated successfully, but these errors were encountered: