Test case details
Test name:
OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakePostRequestForStringWithSPContextTest
Outcome:
Run at:
1/13/2020 6:11:47 PM
Duration:
00:00:00
Error message:
Test method OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakePostRequestForStringWithSPContextTest 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.MakePostRequestForString(String requestUrl, Object content, String contentType, 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 215 at OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakePostRequestForStringWithSPContextTest() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Utilities\HttpHelperTests.cs:line 147
Console output: