Closed yshwartzou closed 2 years ago
Please post the issue to https://github.com/s-KaiNet/node-sp-auth - the library which does auth layer.
Another option is to try downgrading Electron (last version I successfully tried was 11.4.0, yet on macOS) as they are changing the way how to get cookies with each version.
@koltyakov , Thank you. I will post the issue there. I wanted to share here that I figured out how to get around it temporarily by referring to the absolute path of the electron exe in the private.json file as follows.
{
"siteUrl": "https://www.sharepoint.com/sites/mySite/",
"strategy": "OnDemandCredentials",
"ondemand": true,
"force": true,
"electron": "C:\\Users\\user\\NodeProjects\\my-project\\node_modules\\electron\\dist\\electron.exe"
}
I have been getting an error when trying to query sp-rest-proxy in an On Demand configuration I created a simple node.js package to isolate the the issue. Please see the pakcage.json below the error.
When I traced the error the issue appears to be that childproces.spansysnc is getting an EONENT error when tying to create the span of electron.
Node Version: 16.15.1 Operating System: Windows 10 Error Recieved: