Hi team,
I encountered an issue while trying to populate my local workspace in SPGo. After entering my credentials, the process immediately fails with a TypeError related to reading the length property of an undefined variable.
Steps to Reproduce:
- Create a SPGo.json configuration file with the following contents:
{
"sourceDirectory": "src",
"sharePointSiteUrl": "https://tenant.sharepoint.com/sites/YourSite",
"publishingScope": "SaveOnly",
"authenticationType": "Application Password",
"remoteFolders": [
"/SitePages/**/*.*",
"/SiteAssets/**/*.*"
]
}
- Run the command “Populate local workspace”.
- Enter valid SharePoint Online credentials.
- Observe the error output.
Actual Behavior:
SPGo immediately fails and outputs the following error:
[11/13/2025, 3:03:54 PM] ================================ ERROR ================================
[11/13/2025, 3:03:54 PM] Cannot read properties of undefined (reading 'length')
[11/13/2025, 3:03:54 PM] Error Detail:
[11/13/2025, 3:03:54 PM] ----------------------
[11/13/2025, 3:03:54 PM] TypeError: Cannot read properties of undefined (reading 'length')
[11/13/2025, 3:03:54 PM] ===============================================================================
Additional Context:
- The same configuration works when using
"authenticationType": "Online" or "Application Password", suggesting the issue may be specific to "Digest" authentication (which might not be supported for SharePoint Online).
- It would be helpful if SPGo could handle unsupported authentication types gracefully and provide a clearer error message instead of a runtime exception.
Hi team,
I encountered an issue while trying to populate my local workspace in SPGo. After entering my credentials, the process immediately fails with a TypeError related to reading the length property of an undefined variable.
Steps to Reproduce:
{ "sourceDirectory": "src", "sharePointSiteUrl": "https://tenant.sharepoint.com/sites/YourSite", "publishingScope": "SaveOnly", "authenticationType": "Application Password", "remoteFolders": [ "/SitePages/**/*.*", "/SiteAssets/**/*.*" ] }Actual Behavior:
SPGo immediately fails and outputs the following error:
Additional Context:
"authenticationType": "Online"or"Application Password", suggesting the issue may be specific to"Digest"authentication (which might not be supported for SharePoint Online).