Giter VIP home page Giter VIP logo

honeybadger-api's People

Contributors

andystabler avatar marostr avatar murraysum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

honeybadger-api's Issues

Error when trying to access next paginator page

Hey,

I'm using latest version and since today, I have a problem with paginator.
Pulling notices like this:
notices = Honeybadger::Api::Notice.paginate(project_id, fault_id, { created_after: created_after })
There is a NoMethodError: undefined method '<' for nil:NilClass when trying to access next page with notices.next?

Notice resource in 2.0.0

After updating to 2.0.0 version i've encountered problem with notice resource. After calling paginate method on Notice i'm receiving error

2.3.1 :001 > Honeybadger::Api::Notice.paginate(XXXX, XXXX)
NoMethodError: undefined method `[]' for nil:NilClass
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/deploy.rb:14:in `initialize'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/notice.rb:22:in `new'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/notice.rb:22:in `initialize'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/notice.rb:42:in `new'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/notice.rb:42:in `block in handler'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/paginator.rb:22:in `block in initialize'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/paginator.rb:21:in `map'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/paginator.rb:21:in `initialize'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/request.rb:40:in `new'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/request.rb:40:in `paginate'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/request.rb:36:in `paginate'
    from gems/honeybadger-api-2.0.0/lib/honeybadger-api/notice.rb:37:in `paginate'
    from (irb):1

From what i see, Notice resource is now using Deploy resource. Why Deploy is
obligatory now ?

EDIT 1
I think empty deploy key in response is causing that problem

Add URL parameter filtering and ordering

Since the gem was written several of the Read API endpoints now support URL parameter filters and ordering:

  • Fault
  • Notice
  • Deploy
  • Metrics

See Read API docs for details.

Support for these filters and ordering parameters should be in the gem

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.