-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while populating workspace, no info provided #122
Comments
Note, I'm not admin in sharepoint, I only have access to the folder in remoteFolders |
Getting the server version also shows the same error. Could it be a problem with auth? |
Hello @LuisPeregrinaPSL - I agree with you that this is likely an authentication issue. VSCode does have an advanced debugging tool - to enable it go to Second - I do need to continue refining the SPGo output/debug logging components. I've found that SP auth errors do not
Let me know the detailed errors you are seeing and I'll keep working to improve logging. |
Unfortunately I can't find any reference to spgo in the developer tools, it seems vscode uses another process to run extensions. |
When I use bad credentials I get something I would expect as an error message:
|
Used digest, it said 0 files, changed back to ADFS and now the console shows this: |
Hello @LuisPeregrinaPSL I'm still trying to track down the root cause of this issue. I grabbed the latest source for sppull, the library that SPGo uses to download files from SharePoint, and there are two map statement in the 87. let metadataStr: string = this.options.metaFields.map(fieldName => { ...and 121. files: (response.body.d.Files.results || []).map((file) => { I suspect the second instance on line 121 is the cause of the error. This would indicate that the response from the SharePoint API is something other than a list of objects (e.g. an error, or something else). Since you are familiar with JS + Node apps, I was wondering if you could help me debug using the following steps:
I can then compare that to how SPGo manages these objects and hopefully I can find the root cause. Thanks for your help! |
Ok, the error is coming from that package, here is the offending line: \node-sp-auth\lib\src\auth\resolvers\AdfsCredentials.js:55:22 |
Using ondemand showed a login page and that went through without a problem |
Thanks for your quick response! Can you share the following code files you wrote (please mask password info) so that I can create an issue in the
|
package.json:
index.js:
|
@LuisPeregrinaPSL - unfortunately VSCode blocks the external window, so I am not able to use the ondemand/interactive authentication functionality in Did you see the same error |
@LuisPeregrinaPSL - do you have any updates on testing, or was VSCode eating the interactive login window a deal breaker on this one? |
Sorry, forgot about this one, I stopped using it. |
Closing. |
Note: for support questions, please use stackoverflow and tag the post with #spgo.
I'm submitting a ...
What is the current behavior?
[15/7/2020 16:34:14] SPGo enabled.
[15/7/2020 16:34:25] ================================ ERROR ================================
[15/7/2020 16:34:25] Cannot read property 'map' of undefined
[15/7/2020 16:34:25] Error Detail:
[15/7/2020 16:34:25] ----------------------
[15/7/2020 16:34:25] {}
[15/7/2020 16:34:25] ===============================================================================
If the current behavior is a bug, please
spgo.json
file (You may replace corporate PII with "xxx")Steps to reproduce
Run the "Populate local workspace" command
What is the expected behavior?
Files get downloaded
Please tell us about your environment:
I'm familiar with javascript/node ecosystem, is there a way to debug or get a better log level for the output of this plugin?
The text was updated successfully, but these errors were encountered: