phpSPO icon indicating copy to clipboard operation
phpSPO copied to clipboard

Could not resolve host: login.microsoftonline.com

Open dotjsprogrammer opened this issue 8 years ago • 1 comments

Here's the complete error message:

`PHP Fatal error: Uncaught exception 'Exception' with message 'Could not resolve host: login.microsoftonline.com' in /var/www/properties/web/spo/src/Runtime/Utilities/Requests.php:34 Stack trace: #0 /var/www/properties/web/spo/src/Runtime/Utilities/Requests.php(67): Office365\PHP\Client\Runtime\Utilities\Requests::execute(Object(Office365\PHP\Client\Runtime\Utilities\RequestOptions))

#1 /var/www/properties/web/spo/src/Runtime/Auth/SamlTokenProvider.php(92): Office365\PHP\Client\Runtime\Utilities\Requests::post('https://login.m...', NULL, '???<s:Envelope ...')

#2 /var/www/properties/web/spo/src/Runtime/Auth/SamlTokenProvider.php(60): Office365\PHP\Client\Runtime\Auth\SamlTokenProvider->acquireSecurityToken('[email protected]', 'p@ssword')

#3 /var/www/properties/web/spo/src/Runtime/Auth/AuthenticationContext.php(69): Office365\PHP\Client\Runtime\Auth\SamlTokenProvider->acquireToken(Array)

#4 /var/www/properties/web/spo/index.php(11): Office365\PHP\Client\Runtime\Auth\AuthenticationContext->ac in /var/www/properties/web/spo/src/Runtime/Utilities/Requests.php on line 34`

For context, site.sharepoint.com is my employer's SharePoint online site. Assuming the URL and credentials are correct, what else am I missing?

dotjsprogrammer avatar Jul 21 '17 19:07 dotjsprogrammer

Did you ever resolve this one?

syl666 avatar Sep 20 '18 07:09 syl666