Comments (7)
The stacktrace indicates that the Pusher.secret
is nil. The credentials are validated when using channel objects but not when using get (search for ConfigurationError
), this is a bug.
The fact that Pusher.secret
is nil is a bug in your code however - maybe something is awry with initialisation?
from pusher-http-ruby.
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."
from pusher-http-ruby.
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.
from pusher-http-ruby.
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.
from pusher-http-ruby.
from pusher-http-ruby.
I've addressed this issue in #76. This now ensures proper configuration is in place before actually executing the given request.
from pusher-http-ruby.
Fixed in master
from pusher-http-ruby.
Related Issues (20)
- Read cluster from default client HOT 4
- README references webhook_level which has been removed
- Bad documentation of configuration HOT 1
- `Pusher.channels` throws exception "missing key `app_id' in the client configuration" HOT 1
- README describes `Pusher.trigger` but Pusher is a class! HOT 4
- Request: attribute accessor to the cluster config for Pusher Client HOT 5
- Handling payload bigger than 10KB HOT 1
- How do you disconnect from the server side? HOT 1
- Pusher event namespaces? HOT 4
- Improve Pusher::Error for server side errors HOT 2
- Outdated changelog HOT 3
- Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":1006,"message":"Connection interrupted (200)"}}} HOT 2
- Add Support for Encrypted Channels HOT 1
- Cluster should only override default if non-nil HOT 3
- Pusher.cluster delegates to Pusher::Client#cluster which is not defined HOT 5
- Libsodium dependency HOT 1
- changelog is not clear about breaking changes from v1.xx -> v2.xx HOT 2
- Can't set encryption_master_key_base64 using the global configuration style. HOT 3
- DEPRECATION WARNING `request#content_type` in Rails v7.0.1 HOT 5
- Pusher::Webhook#event for presence channel missing `user_info` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pusher-http-ruby.