Closed ckhall closed 5 years ago
additional backtrace:
/Projectsmyapp/vendor/bundle/ruby/2.3.0/gems/bugsnag-api-2.0.2/lib/bugsnag/api/response/raise_error.rb:16:in `on_complete'
/Projectsmyapp/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/response.rb:9:in `block in call'
/Projectsmyapp/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/response.rb:57:in `on_complete'
/Projectsmyapp/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/response.rb:8:in `call'
/Projectsmyapp/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in `build_response'
/Projectsmyapp/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in `run_request'
/Projectsmyapp/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/connection.rb:140:in `get'
/Projectsmyapp/vendor/bundle/ruby/2.3.0/gems/sawyer-0.8.1/lib/sawyer/agent.rb:94:in `call'
/Projectsmyapp/vendor/bundle/ruby/2.3.0/gems/sawyer-0.8.1/lib/sawyer/relation.rb:264:in `call'
/Projectsmyapp/vendor/bundle/ruby/2.3.0/gems/sawyer-0.8.1/lib/sawyer/relation.rb:163:in `get'
You need to set the sort parameter to unsorted
when using filters and paginating for a few pages. Looks like our docs here need improvement - and I don't know if this library supports/validates the sort param. If it allows it, that should unblock you and we should look at improving the docs here!
Hi @ckhall, has the above comment solved your issue? Any feedback you have regarding the API or the docs is really valuable, so we'd love to know.
It worked fine. Thanks for the information.
On Mon, Sep 17, 2018 at 11:55 AM Alex Moinet notifications@github.com wrote:
Hi @ckhall https://github.com/ckhall, has the above comment solved your issue? Any feedback you have regarding the API or the docs is really valuable, so we'd love to know.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bugsnag/bugsnag-api-ruby/issues/21#issuecomment-422070220, or mute the thread https://github.com/notifications/unsubscribe-auth/AAArPFJoJj3kfiQieXcA0SAcfQhE-Ro9ks5ub8YGgaJpZM4Wb_J- .
per pagination documentation, I'm attempting to pull down all the events associated with a given error. As it loops through, the 4th time through, it errors with a 400 bad request error and outputs a very large URI with several offset event_ids parameters.
error: (project, error, and event ids redacted)
code to reproduce:
`
if i change per_page option to 50, it errors on the 8th time through the loop, so it seems like it gets to the same spot and blows up once it gets through 400 events. I've tried it on a few other errors, another one with a large amount of events, and a couple smaller ones and those get past the 400 mark and I eventually get a 429 RateLimit error, which is expected.
Any help would be appreciated. Thanks.