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

Set-MgUserPhotoContent : An error occurred while sending the request #2376

Closed
tkudya opened this issue Oct 20, 2023 · 1 comment
Closed

Set-MgUserPhotoContent : An error occurred while sending the request #2376

tkudya opened this issue Oct 20, 2023 · 1 comment

Comments

@tkudya
Copy link

tkudya commented Oct 20, 2023

Describe the bug
Currently uploading multiple photos using the Set-MgUserPhotoContent command and it always runs into the error "An error occurred while sending the request" I have added a time delay thinking maybe its throttling but it always happens. The picture uploads and the next one fails. It's different people, i can run the command manually and it will work

To Reproduce
Steps to reproduce the behavior:

  1. Set-MgUserPhotoContent -UserID xxxxxx@xxx.com -infile
  2. Received exception with message 'HttpRequestException - An error occurred while sending the

Expected behavior

Expecting no error

Debug Output
image

image

Run the problematic command with -Debug and paste the resulting debug stream below.
⚠ ATTENTION: Be sure to remove any sensitive information that may be in the logs.

Module Version
Get-Module Microsoft.Graph*

ModuleType Version Name ExportedCommands


Script 2.7.0 Microsoft.Graph.Authentication {Add-MgEnvironment, Connect-MgGraph, Disconnect-MgGraph, Get-MgContext...}
Script 2.7.0 Microsoft.Graph.Users {Get-MgUser, Get-MgUserCount, Get-MgUserCreatedObject, Get-MgUserCreatedObjectAsServicePrincipal...}

Environment Data
image

@peombwa
Copy link
Member

peombwa commented Oct 20, 2023

Please the request details at #2360 (comment) in #2360.

Closing as duplicate of #2360.

@peombwa peombwa closed this as completed Oct 20, 2023
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