Comments (6)
@arruw Yes, you can try setting the created_at
column in your queries, which then sets the Since
and Until
parameters. This should help reduce the number of results we try to get.
In the meantime, we'll also take a look at the error you're getting and see if we can handle it better and/or expose it better (depending on what the SDK returns).
from steampipe-plugin-pagerduty.
Hi @arruw, thanks for using Steampipe! Sorry to see that you are running into issues.
From the error HTTP response failed with status code 400, message: Arguments Caused Error
, it seems like a bad request.
To investigate more around this issue we would like to understand a few things first:
- What happens if you try to list all incidents without passing any filter? For example:
select id, summary from pagerduty_incident limit 10
- If the above query works, can you please check the below query?
select id, summary from pagerduty_incident where created_at >= current_date
The above points will definitely help us to reproduce the issue.
from steampipe-plugin-pagerduty.
Hi @Subhajit97, the first query works, but the second query fails exactly the same as in the example I give before.
Also, is it possible to attach and debug live plugin? Or in general how do you debug a plugin?
from steampipe-plugin-pagerduty.
Found the root cause, well we have a lot of noise in our pagerduty. This is the problematic request:
https://api.pagerduty.com/incidents?limit=100&offset=10000&since=2022-09-20T00%3A00%3A00Z
{
"error": {
"message": "Arguments Caused Error",
"code": 2002,
"errors": [
"Offset+limit exceeds maximum allowed value of 10000. Please try to refine your search to reduce the returned set of records below this number, like adding a date range."
]
}
}
One option to work around this would be to manipulate since
& until
parameters, wdyt?
from steampipe-plugin-pagerduty.
'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
from steampipe-plugin-pagerduty.
'This issue was closed because it has been stalled for 90 days with no activity.'
from steampipe-plugin-pagerduty.
Related Issues (9)
- Add PagerDuty plugin initial tables, docs
- Allow filtering for service_ids or team_ids in table pagerduty_incident HOT 5
- Recompile plugin with steampipe-plugin-sdk v4.1.4 and Go version 1.19
- Fix `title` column reference in `pagerduty_incident` and `pagerduty_incident_log` table
- Add table pagerduty_incident
- Add table pagerduty_incident_log
- Add table pagerduty_service_integration
- Add table pagerduty_vendor
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 steampipe-plugin-pagerduty.