Skip to content

pagesize cannot be larger than 100#377

Open
Buenno wants to merge 1 commit into
SCRT-HQ:mainfrom
Buenno:mobile_device_api_page
Open

pagesize cannot be larger than 100#377
Buenno wants to merge 1 commit into
SCRT-HQ:mainfrom
Buenno:mobile_device_api_page

Conversation

@Buenno
Copy link
Copy Markdown

@Buenno Buenno commented Sep 6, 2022

Get-GSMobileDevice returns a Google API error as the default pagesize value is outside of the permitted range.

Get-GSMobileDevice: Exception calling "Execute" with "0" argument(s): "Google.Apis.Requests.RequestError Invalid value '1000'. Values must be within the range: [value: 1 , value: 100 ] [400]

I have reduced the default value from 1000 to 100.

@stephecannon
Copy link
Copy Markdown

I also see this error message and can confirm that @Buenno's solution resolves the issue.

Copy link
Copy Markdown

@stephecannon stephecannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested these changes and they do resolve the issue.

Copy link
Copy Markdown

@TO360-IzzyDanza TO360-IzzyDanza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks

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

Successfully merging this pull request may close these issues.

3 participants