Test case details
Test name:
OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakeGetRequestForStringWithSPContextTest
Outcome:
Run at:
3/24/2020 6:11:45 PM
Duration:
00:00:05
Error message:
Test method OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakeGetRequestForStringWithSPContextTest threw exception: System.ApplicationException: Exception while invoking endpoint https://portal2016.pnp.com/sites/pnptest/_api/web. ---> System.Web.HttpException: 401 UNAUTHORIZED
Stacktrace:
at 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 637 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: