thybag / PHP-SharePoint-Lists-API

A simple PHP API to make working with SharePoint lists easy.
MIT License
184 stars 95 forks source link

Fatal error: Uncaught exception 'Exception' with message 'Error' #133

Open dooley1023 opened 7 years ago

dooley1023 commented 7 years ago

Hi team, been trying to work this one out the last few days. pouring over the previous errors and none really match exactly my issue. i receive the below error when attempting to read list data from sharepoint. this started happening recently as it was working approx. 2 weeks ago. i am working with a downloaded version of my wsdl, and i have pulled a new version to ensure there wasnt something change there.

Fatal error: Uncaught exception 'Exception' with message 'Error' in Z:\web\projectstest\Projectshome\dbtest\workingdb\resources\scraper\src\Thybag\Auth\SoapClientAuth.php:127 Stack trace: #0 [internal function]: Thybag\Auth\SoapClientAuth->doRequest('<?xml version="...', 'http://teams.su...', 'http://schemas....', 1, 0) #1 Z:\web\projectstest\Projectshome\dbtest\workingdb\resources\scraper\src\Thybag\SharePointAPI.php(445): SoapClient->call('GetListItems', Array) #2 Z:\web\projectstest\Projectshome\dbtest\workingdb\resources\scraper\src\Thybag\SharePointAPI.php(445): Thybag\Auth\SoapClientAuth->GetListItems(Object(SoapVar)) #3 Z:\web\projectstest\Projectshome\dbtest\workingdb\scraper.php(93): Thybag\SharePointAPI->read('{1d91fc70-da68-...') #4 {main} thrown in Z:\web\projectstest\Projectshome\dbtest\workingdb\resources\scraper\src\Thybag\Auth\SoapClientAuth.php on line 127'

i put my attempt in a standard try catch and receive this. 'Caught exception: Error'

so i also dumped the exception and got this

object(Exception)#9 (7) { ["message":protected]=> string(5) "Error" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(500) ["file":protected]=> string(102) "Z:\web\projectstest\Projectshome\dbtest\workingdb\resources\scraper\src\Thybag\Auth\SoapClientAuth.php" ["line":protected]=> int(127) ["trace":"Exception":private]=> array(4) { [0]=> array(4) { ["function"]=> string(11) "__doRequest" ["class"]=> string(26) "Thybag\Auth\SoapClientAuth" ["type"]=> string(2) "->" ["args"]=> array(5) { [0]=> string(571) "

            {1d91fc70-da68-4fe5-b3e7-8d4ed42adf41}
            2000000

" [1]=> string(79) "http://"siteserver"/sites/retail_deployment/hardware/_vti_bin/lists.asmx" [2]=> string(57) "http://schemas.microsoft.com/sharepoint/soap/GetListItems" [3]=> int(1) [4]=> int(0) } } [1]=> array(6) { ["file"]=> string(96) "Z:\web\projectstest\Projectshome\dbtest\workingdb\resources\scraper\src\Thybag\SharePointAPI.php" ["line"]=> int(445) ["function"]=> string(6) "__call" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> &string(12) "GetListItems" [1]=> &array(1) { [0]=> object(SoapVar)#10 (2) { ["enc_type"]=> int(147) ["enc_value"]=> string(344) "

            {1d91fc70-da68-4fe5-b3e7-8d4ed42adf41}
            2000000

        "
      }
    }
  }
}
[2]=>
array(6) {
  ["file"]=>
  string(96) "Z:\web\projectstest\Projectshome\dbtest\workingdb\resources\scraper\src\Thybag\SharePointAPI.php"
  ["line"]=>
  int(445)
  ["function"]=>
  string(12) "GetListItems"
  ["class"]=>
  string(26) "Thybag\Auth\SoapClientAuth"
  ["type"]=>
  string(2) "->"
  ["args"]=>
  array(1) {
    [0]=>
    object(SoapVar)#10 (2) {
      ["enc_type"]=>
      int(147)
      ["enc_value"]=>
      string(344) "

            {1d91fc70-da68-4fe5-b3e7-8d4ed42adf41}
            2000000

        "
    }
  }
}
[3]=>
array(6) {
  ["file"]=>
  string(61) "Z:\web\projectstest\Projectshome\dbtest\workingdb\scraper.php"
  ["line"]=>
  int(93)
  ["function"]=>
  string(4) "read"
  ["class"]=>
  string(20) "Thybag\SharePointAPI"
  ["type"]=>
  string(2) "->"
  ["args"]=>
  array(1) {
    [0]=>
    &string(38) "{1d91fc70-da68-4fe5-b3e7-8d4ed42adf41}"
  }
}

} ["previous":"Exception":private]=> NULL }

from looking at this section it seems i might be blocked but i know i have full access to this page

thank you guys in advance for any insight please note that "site server" is just a place holder.