Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-DrmmSiteOpenAlerts #32

Open
timmitwiser opened this issue Apr 3, 2023 · 5 comments
Open

Get-DrmmSiteOpenAlerts #32

timmitwiser opened this issue Apr 3, 2023 · 5 comments

Comments

@timmitwiser
Copy link

Sometimes, when using this cmdlet against a site, I get this sort of error back:

… site/$siteUid/alerts/open?max=$maxPage&page=$page" | ConvertFrom-Json
| ~~~~~~~~~~~~~~~~
| The provided JSON includes a property whose name is an empty string, this is only supported using the -AsHashTable switch.

I've not looked at the code but it seems that it's maybe wanting to return a lot of results in a paginated form but the module is not able to handle that?

@aaronengels
Copy link
Owner

aaronengels commented Apr 7, 2023

We may be hitting the AWS API limits. I will need a DattoRMM with many alerts to test this, which I don't have. How many open alerts do you have? Maybe I can create a filter to reduce the load, or you can close some first?

@timmitwiser
Copy link
Author

timmitwiser commented Apr 7, 2023 via email

@aaronengels
Copy link
Owner

That is not too many. Can you send your code so I can check if you are using my alert message function? Maybe this might have thrown the error.

@timmitwiser
Copy link
Author

timmitwiser commented Apr 11, 2023 via email

@timmitwiser
Copy link
Author

timmitwiser commented Apr 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants