GraphRunner icon indicating copy to clipboard operation
GraphRunner copied to clipboard

Invoke-SearchMailbox Download Issue

Open manik-mk opened this issue 8 months ago • 1 comments

Getting the below error while download the emails. can any one help me to fixe this.

Invoke-RestMethod: /home/kali/Desktop/temp/GraphRunner/GraphRunner.ps1:6000                                             
Line |
6000 |  … geDetails = Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/ …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     |  {   "error": {     "code": "RequestBroker--ParseUri",     "message": "Resource not found for the segment
     | \u0027JyjBpl5RBwB7yp11beL6SJQMaLR97mVkAAAAAAEJAAB7yp11beL6SJQMaLR97mVkAAAAAjstAAA=\u0027."   } }
MethodInvocationException: /home/kali/Desktop/temp/GraphRunner/GraphRunner.ps1:6002
Line |
6002 |  …             $dateTime = [DateTime]::ParseExact($dateTimeString, "yyyy …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "ParseExact" with "3" argument(s): "String '' was not recognized as a valid DateTime."
InvalidOperation: /home/kali/Desktop/temp/GraphRunner/GraphRunner.ps1:6003
Line |
6003 |                  $numericDate = $dateTime.ToString("yyyyMMddHHmmss")
     |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.

manik-mk avatar Apr 09 '25 07:04 manik-mk

same here for me :

[*] Downloading perso_carte_identite Invoke-RestMethod : Le serveur distant a retourné une erreur : (400) Demande incorrecte. Au caractère Ligne:5935 : 35

  • ... geDetails = Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/ ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation : (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Exception lors de l'appel de « ParseExact » avec « 3 » argument(s) : « La chaîne n'a pas été reconnue en tant que DateTime valide. » Au caractère Ligne:5937 : 17

  • ... $dateTime = [DateTime]::ParseExact($dateTimeString, "yyyy ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : FormatException

Impossible d’appeler une méthode dans une expression Null. Au caractère Ligne:5938 : 17

  •             $numericDate = $dateTime.ToString("yyyyMMddHHmmss")
    
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation : (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

ProcessusT avatar Jul 04 '25 13:07 ProcessusT