-
Notifications
You must be signed in to change notification settings - Fork 123
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
Validate that credentials are set before calling get, post, etc. #48
Comments
The stacktrace indicates that the The fact that |
I've renamed this issue from "Pusher.get("/channels/#{channel}", info: :user_count)[:user_count] nil-pointer bug" to "Validate that credentials are set before calling get, post, etc." |
Thanks, sounds like a better name :) I'm not sure how Pusher.secret can be set to nil. We are not using Puser in any wierd way, other than that we are using presence channels and auth. |
It would be helpful to have a friendly error message here. Ran into the same error and it was because we didn't have the configuration value set in our staging environment. Would have saved time to validate this and print a logical error message. |
👍 @shedd |
I've addressed this issue in #76. This now ensures proper configuration is in place before actually executing the given request. |
Fixed in master |
This happens rarely, very rarely. it does seem sporadic. This is the ruby code
Pusher.get("/channels/presence-oma.presentations.1", info: :user_count)[:user_count]
It happened once before too, back then I changed the channel name, restarted the rails app, hit reload and got the same error. Right now, I've just been idle for a long time. Yeah, I know I'm not helping much... See stacktrace:
pusher 0.11.3
ruby 2.0.0
rails 4.0.0
The text was updated successfully, but these errors were encountered: