sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

IDigestCache, DigestCache in SPFx 1.5

Open aslanovsergey opened this issue 8 years ago • 6 comments

I can't find IDigestCache, DigestCache in '@microsoft/sp-http' in SPFx 1.5


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

aslanovsergey avatar Jun 13 '18 10:06 aslanovsergey

Thanks for reporting this, we are looking into to the root cause and ways to fix this asap.

VesaJuvonen avatar Jun 13 '18 18:06 VesaJuvonen

We will be addressing this in the 1.5.1 release, which will be released soon.

VesaJuvonen avatar Jun 25 '18 11:06 VesaJuvonen

This should be now addressed with the 1.5.1 release, so would request to validate the situation with following. Here are short release notes for 1.5.1 release - https://twitter.com/SharePoint/status/1011689501213757441.

VesaJuvonen avatar Jun 26 '18 19:06 VesaJuvonen

Also broken in some builds of 1.4. To work around it (as taking on trying to upgrade to a new spfx version is more than I wanted to take on to get a digest) I just did this:

let fetchProps:RequestInit = { method:"POST", headers: { "Accept":"application/json;odata=verbose","cookie":document.cookie}, credentials:"include" }; fetch(this.context.pageContext.web.absoluteUrl + "/_api/contextinfo",fetchProps).then((response:any) => response.json()).then((responseJson:any) => { this.setState({"digest": responseJson.d.GetContextWebInformation.FormDigestValue as string }); });

MaartenSundman avatar Jul 19 '18 21:07 MaartenSundman

This exists now.

GrahamMcMynn avatar Dec 17 '18 21:12 GrahamMcMynn

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 27 '20 12:01 msft-github-bot