Advertisement
cveira

Facebook PowerShell Module Crash

Feb 2nd, 2014
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   >> C:\data\users\cveira\home\projects\SMSF\GitHub\profiles\master\home\SC2013
  2.   >> SMSC [1] > Get-FBPost -Connection $connections.Facebook.connection
  3. DEBUG:    1+  >>>> Get-FBPost -Connection $connections.Facebook.connection
  4. DEBUG:     ! CALL function '<ScriptBlock>'
  5. DEBUG: 1874+      >>>> {
  6.  
  7. DEBUG:     ! CALL function 'Get-FBPost<Process>'  (defined in file 'C:\Users\Carlos\Documents\WindowsPowerShell\Modules\Facebook\Facebook.ps1')
  8. DEBUG: 1875+          >>>> Write-Debug "Get-FBPost: id $Id"
  9.  
  10. DEBUG: 1877+          >>>> Set-StrictMode -Version 2.0
  11.  
  12. DEBUG: 1880+          >>>> $retval = Get-FBAssociation -Id $Id -Fields $Fields -Type "Posts" -TypeName "Post" -Connection $Connection
  13.  
  14. DEBUG: 1658+      >>>> {
  15.  
  16. DEBUG:     ! CALL function 'Get-FBAssociation<Process>'  (defined in file 'C:\Users\Carlos\Documents\WindowsPowerShell\Modules\Facebook\Facebook.ps1')
  17. DEBUG: 1659+          >>>> Write-Debug "Get-FBAssociation: type $Type id $Id"
  18.  
  19. DEBUG: 1661+          >>>> Set-StrictMode -Version 2.0
  20.  
  21. DEBUG: 1664+          >>>> $query = "$Id/$Type"
  22.  
  23. DEBUG:     ! SET $query = 'me/Posts'.
  24. DEBUG: 1665+         if ( >>>> $Fields -ne $null)
  25.  
  26. DEBUG: 1672+              >>>> $query = $query + "?limit=1000" # TODO Limit mechanism
  27.  
  28. DEBUG:     ! SET $query = 'me/Posts?limit=1000'.
  29. DEBUG: 1674+          >>>> $raw = Get-FBRawData -Query $query -Connection $Connection
  30.  
  31. DEBUG: 1287+  >>>> {
  32.  
  33. DEBUG:     ! CALL function 'Get-FBRawData'  (defined in file 'C:\Users\Carlos\Documents\WindowsPowerShell\Modules\Facebook\Facebook.ps1')
  34. DEBUG: 1293+      >>>> Write-Debug "Get-FBRawData: query $Query"
  35.  
  36. DEBUG: 1295+      >>>> Set-StrictMode -Version 2.0
  37.  
  38. DEBUG: 1300+         if ( >>>> -not $Connection)
  39.  
  40. DEBUG: 1304+          >>>> $result = $Connection.Get($Query)
  41.  
  42. DEBUG: 1308+          >>>> $e = $_.Exception.InnerException
  43.  
  44. DEBUG:     ! SET $e = 'Facebook.WebExceptionWrapper: The remote server returned an...'.
  45. DEBUG: 1309+         if ( >>>> $null -eq $e)
  46.  
  47. DEBUG: 1313+          >>>> $useErrorId = "RawData"
  48.  
  49. DEBUG:     ! SET $useErrorId = 'RawData'.
  50. DEBUG: 1314+          >>>> $useCategory = "ReadError"
  51.  
  52. DEBUG:     ! SET $useCategory = 'ReadError'.
  53. DEBUG: 1315+         if ( >>>> $e -is [Facebook.FacebookOAuthException])
  54.  
  55. DEBUG: 1321+         elseif ( >>>> $e -is [Facebook.FacebookApiLimitException])
  56.  
  57. DEBUG: 1325+         elseif ( >>>> $e -is [Facebook.FacebookApiException])
  58.  
  59. DEBUG: 1329+          >>>> Write-Error -Exception $e -ErrorId $useErrorId -Category $useCategory
  60.  
  61. DEBUG:   19+                                         if ( &  >>>> { Set-StrictMode -Version 1; $_.PSMessageDetails } ) {
  62.  
  63. DEBUG:     ! CALL function '<ScriptBlock>'
  64. DEBUG:   19+                                         if ( & {  >>>> Set-StrictMode -Version 1; $_.PSMessageDetails } ) {
  65.  
  66. DEBUG:   19+                                         if ( & { Set-StrictMode -Version 1;  >>>> $_.PSMessageDetails } ) {
  67.  
  68. DEBUG:    1+ &  >>>> { Set-StrictMode -Version 1; $this.Exception.InnerException.PSMessageDetails }
  69. DEBUG:     ! CALL function '<ScriptBlock>'
  70. DEBUG:    1+ & {  >>>> Set-StrictMode -Version 1; $this.Exception.InnerException.PSMessageDetails }
  71. DEBUG:    1+ & { Set-StrictMode -Version 1;  >>>> $this.Exception.InnerException.PSMessageDetails }
  72. DEBUG:    1+ & { Set-StrictMode -Version 1; $this.Exception.InnerException.PSMessageDetails  >>>> }
  73. DEBUG:   19+                                         if ( & { Set-StrictMode -Version 1; $_.PSMessageDetails  >>>> } ) {
  74.  
  75. DEBUG:   26+                                         $errorCategoryMsg = &  >>>> { Set-StrictMode -Version 1; $_.ErrorCategory_Message }
  76.  
  77. DEBUG:     ! CALL function '<ScriptBlock>'
  78. DEBUG:   26+                                         $errorCategoryMsg = & {  >>>> Set-StrictMode -Version 1; $_.ErrorCategory_Message }
  79.  
  80. DEBUG:   26+                                         $errorCategoryMsg = & { Set-StrictMode -Version 1;  >>>> $_.ErrorCategory_Message }
  81.  
  82. DEBUG:   26+                                         $errorCategoryMsg = & { Set-StrictMode -Version 1; $_.ErrorCategory_Message  >>>> }
  83.  
  84. DEBUG:   42+                                         $originInfo = &  >>>> { Set-StrictMode -Version 1; $_.OriginInfo }
  85.  
  86. DEBUG:     ! CALL function '<ScriptBlock>'
  87. DEBUG:   42+                                         $originInfo = & {  >>>> Set-StrictMode -Version 1; $_.OriginInfo }
  88.  
  89. DEBUG:   42+                                         $originInfo = & { Set-StrictMode -Version 1;  >>>> $_.OriginInfo }
  90.  
  91. DEBUG:   42+                                         $originInfo = & { Set-StrictMode -Version 1; $_.OriginInfo  >>>> }
  92.  
  93. Get-FBRawData : The remote server returned an error: (500) Internal Server Error.
  94. At C:\Users\Carlos\Documents\WindowsPowerShell\Modules\Facebook\Facebook.ps1:1674 char:16
  95. +         $raw = Get-FBRawData -Query $query -Connection $Connection
  96. +                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  97.     + CategoryInfo          : ReadError: (:) [Write-Error], WebExceptionWrapper
  98.     + FullyQualifiedErrorId : RawData,Get-FBRawData
  99.  
  100. DEBUG: 1336+  >>>> }
  101.  
  102. DEBUG:     ! SET $raw = ''.
  103. DEBUG: 1675+          >>>> Convert-FBJSON $raw | MarkWithType $TypeName
  104.  
  105. DEBUG: 1357+  >>>> {
  106.  
  107. DEBUG:     ! CALL function 'Convert-FBJSON'  (defined in file 'C:\Users\Carlos\Documents\WindowsPowerShell\Modules\Facebook\Facebook.ps1')
  108. DEBUG: 1363+      >>>> Set-StrictMode -Version 2.0
  109.  
  110. DEBUG: 1366+     if ( >>>> $Raw -eq $null)
  111.  
  112. DEBUG: 1368+          >>>> Write-Debug "Convert-FBJSON$Header     null"
  113.  
  114. DEBUG: 1439+  >>>> }
  115.  
  116. DEBUG: 1676+      >>>> }
  117.  
  118. DEBUG:     ! SET $retval = ''.
  119. DEBUG: 1881+          >>>> $retval
  120.  
  121. DEBUG: 1882+      >>>> }
  122.  
  123.  
  124.   >> C:\data\users\cveira\home\projects\SMSF\GitHub\profiles\master\home\SC2013
  125.   >> SMSC [1] >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement