Giter VIP home page Giter VIP logo

Comments (7)

mloughran avatar mloughran commented on July 30, 2024

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.

mloughran avatar mloughran commented on July 30, 2024

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.

oma avatar oma commented on July 30, 2024

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.

shedd avatar shedd commented on July 30, 2024

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.

ahmetabdi avatar ahmetabdi commented on July 30, 2024

👍 @shedd

from pusher-http-ruby.

hovsater avatar hovsater commented on July 30, 2024

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.

zimbatm avatar zimbatm commented on July 30, 2024

Fixed in master

from pusher-http-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.