Test case details
Test name:
OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakeGetRequestForStringWithSPContextTest
Outcome:
Run at:
3/25/2020 8:42:19 PM
Duration:
00:00:20
Error message:
Test method OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakeGetRequestForStringWithSPContextTest threw exception: System.NullReferenceException: Object reference not set to an instance of an object.
Stacktrace:
at at OfficeDevPnP.Core.Utilities.HttpHelper.SetAuthenticationCookies(HttpClientHandler handler, ClientContext context) in c:\pnpbuild\Core\OfficeDevPnP.Core\Utilities\HttpHelper.cs:line 661 at OfficeDevPnP.Core.Utilities.HttpHelper.MakeHttpRequest[TResult](String httpMethod, String requestUrl, HttpResponseHeaders& responseHeaders, String accessToken, String accept, Object content, String contentType, String referer, Func`2 resultPredicate, Dictionary`2 requestHeaders, Dictionary`2 cookies, Int32 retryCount, Int32 delay, String userAgent, ClientContext spContext) in c:\pnpbuild\Core\OfficeDevPnP.Core\Utilities\HttpHelper.cs:line 526 at OfficeDevPnP.Core.Utilities.HttpHelper.MakeHttpRequest[TResult](String httpMethod, String requestUrl, String accessToken, String accept, Object content, String contentType, String referer, Func`2 resultPredicate, Dictionary`2 requestHeaders, Dictionary`2 cookies, Int32 retryCount, Int32 delay, String userAgent, ClientContext spContext) in c:\pnpbuild\Core\OfficeDevPnP.Core\Utilities\HttpHelper.cs:line 458 at OfficeDevPnP.Core.Utilities.HttpHelper.MakeGetRequestForString(String requestUrl, String accessToken, String accept, Dictionary`2 requestHeaders, Dictionary`2 cookies, Int32 retryCount, Int32 delay, String userAgent, ClientContext spContext) in c:\pnpbuild\Core\OfficeDevPnP.Core\Utilities\HttpHelper.cs:line 56 at OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakeGetRequestForStringWithSPContextTest() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Utilities\HttpHelperTests.cs:line 125
Console output:
    

Debug Trace:
vstest.console.exe Information: 0 : 2020-03-25 20:42:19.3798	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2013.pnp.com/sites/pnptest2,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:8fb8ffde-5f4c-4336-aaf8-092555d72122,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:19.3867	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:41:24 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:20.3848	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:41:25 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:21.3888	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:41:27 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:22.3850	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:41:29 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:23.3847	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:41:30 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:24.3862	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:41:32 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:25.3870	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:41:34 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:26.3863	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:41:59 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:27.3843	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:01 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:28.3862	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:02 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:29.3870	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:03 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:30.3872	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:05 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:31.3857	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:06 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:32.3846	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:08 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:33.3847	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:09 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:34.3879	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:10 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:35.3868	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:11 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:36.3858	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:12 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:37.3858	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:13 AM	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:38.3849	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:19 AM	0ms