Closed mickey closed 4 years ago
Hi @mickey, thanks for the update. This gem is maintained and should be working as stated.
We'll check issues related to pagination and filtering and get them fixed as soon as possible.
Thanks a lot for the follow-up!
So the filters issue may be that you're missing an argument from the errors
method. I'm going to submit a PR for making the errors
and error
functions easier to use, but in the meantime could you try again with:
::Bugsnag::Api.errors("XXX", nil, filters: {"error.status": [{ "type": "eq", "value": "open" }]}).map {|e| e.status }
?
Thanks for following-up!
For the filters issue, I tried again and it works fine with the added argument:
::Bugsnag::Api.errors("XXX", nil, filters: {"error.status": [{ "type": "eq", "value": "open" }]}).map {|e| e.status }
=> ["open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open", "open"]
I'm going to submit a PR for making the errors and error functions easier to use
👍 Also a few examples in the documentation would be great
@mickey - Looks like this has since been fixed in the dashboard. If you have further questions or comments, let us know!
Hey there, I'm trying to work with you API and encountered a few issues. I'm using the last gem version (2.0.2).
1/ Trying to use custom pagination. So I copy-pasted your documentation example:
The
per_page
does not work.2/ Then I tried to use the
auto_paginate
and theper_page
option:And first the offset is wrong :(
Offset is by 30 instead of 100. And secondly it doesn't handle throttling (I always end up with 429).
Also what's up with the throttling? I'm on a paid-plan and throttled after a few requests only :(
3/ I tried to use the
filters
option but no matter what I try it never works, here's an example:Is this gem still maintained or am I doing something terribly wrong?