When calling New-PartnerAccessToken using a refresh token that was obtained from an earlier call, we frequently see the error Invalid URI : The URI string is too long
New-PartnerAccessToken: Invalid URI: The Uri string is too long.
The error does not seem to occur when the length of the token is shorter than some unknown amount. We do note that the refresh tokens are often extremely long -- the token that is currently in use for one of our tenants is 65,551 characters.
When calling New-PartnerAccessToken using a refresh token that was obtained from an earlier call, we frequently see the error
Invalid URI : The URI string is too long
Example call in the Powershell console:
The error does not seem to occur when the length of the token is shorter than some unknown amount. We do note that the refresh tokens are often extremely long -- the token that is currently in use for one of our tenants is 65,551 characters.