chrishasz / spgo

SPGo: A Lightweight, Open Source, SharePoint IDE for Visual Studio Code
https://www.chrishasz.com/spgo
MIT License
60 stars 11 forks source link

SPGo not showing any error information #110

Open evansjustindev opened 4 years ago

evansjustindev commented 4 years ago

Ive gotten the initial config file to populate, but when trying to populate local workspace nothing happens at all. Can't even try to work on fixing it without any sort of idea as to why its not working.

chrishasz commented 4 years ago

Hello @evansjustindev

What do you see when you look at the SPGo output window (view->output) or ctrl+shift+U and then select "SPGo" from the dropdown at the top-right of the output window?

Also, can you respond with your current spgo.json file?

RedX2501 commented 4 years ago

Well in my case it stays trying "Downloading files" and nothing happens.

grafik

chrishasz commented 4 years ago

Hello @RedX2501 - Can you share your spgo.json file with me and let me know which command you ran, e.g. Get Server Version, Populate Local Workspace?

That will help me get this resolved for you.

RedX2501 commented 4 years ago

Hi,

The commands were Retrieve folder aswell as Populate local workspace. Both had the same odd behaviour. I was able to type my username and password but then nothing happened.

here it is

{
    "sourceDirectory": "src",
    "sharePointSiteUrl": "https:///sites.<censored>.com/sites/010644",
    "publishingScope": "None",
    "authenticationType": "NTLM",
    "remoteFolders": [
        "/Documents/**"
    ]
}

The <censored> bit is to protect our network structure :)

chrishasz commented 4 years ago

Hello @RedX2501 -

I can see two potential issues with your SPGo file:

  1. there are three '/' characters in the sharePointSiteUrl. web URLs are formatted with two slashes. This could prevent SPGo from connecting to your site.
  2. the glob notation of "/Documents/**" in remoteFolders will download all folders, but not the files in the folders. To download all files and folders, you will want to change the glob notation to "/Documents/**/*"

Can you try the following spgo.json file:

{
    "sourceDirectory": "src",
    "sharePointSiteUrl": "https://sites.<censored>.com/sites/010644",
    "publishingScope": "None",
    "authenticationType": "NTLM",
    "remoteFolders": [
        "/Documents/**/*"
    ]
}

Please let me know if you still see errors after these changes.

RedX2501 commented 4 years ago

Thanks for the support!

I tried fixing the sharePointSiteUrl but that didn't help. The url I have now successfully opens in the browser.

When I try to Retrieve Folder and enter a domain in front of my username I receive a 401 reply "message":"401 - undefined". When I enter only the username with a known wrong password nothing happens. No output in the log. Only the spinning arrows with 'Downloading files'.

chrishasz commented 4 years ago

Hello @RedX2501 -

I have heard of this type of issue happening with NTLM when there are issues of proxies, or WFE config. I'm going to try to add better logging to SPGo for this next release, so at the very least we will get better error info.

In the meantime, if you are interested in helping me debug this further, I would like you to try the call directly from Javascript. Under the covers, SPGo uses node-sp-auth for authentication. Can you follow the steps on this page to test out a direct connection to your SP server. If you can paste the full output from the program in this issue, it will help me debug this issue more effectively.

Additionally, if there are any additional logs from SPGo that you can share, I would appreciate it.

Thanks for helping out!

RedX2501 commented 4 years ago

Your link to "this page" points to the issue we are on. Maybe you wanted a different link?

chrishasz commented 4 years ago

I did, my mistake. Here is the correct URL:

https://github.com/s-KaiNet/node-sp-auth/wiki/SharePoint%20on-premise%20user%20credentials%20authentication

chrishasz commented 3 years ago

Hello @RedX2501, are you still seeing this issue? If I don't hear from you, I'll close this.

RedX2501 commented 3 years ago

Very likely yes but i can only try again in January when i return to work.

On Thu, 17 Dec 2020, 03:23 Chris Hasz, notifications@github.com wrote:

Hello @RedX2501 https://github.com/RedX2501, are you still seeing this issue? If I don't hear from you, I'll close this.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chrishasz/spgo/issues/110#issuecomment-747237237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHDBDDGQDLQKVTLEXKQKIDSVGPX3ANCNFSM4LGQS7AQ .

rpatton16 commented 3 years ago

Hello, I seem to be having the same issue on our 2016 on-prem environment, NTLM authentication. Running SPGo v1.7.2, configured the environment in new folder, and SPGo output (below) shows extension is enabled. Then ran cmd to populate local workspace and got the 401 error (below) with the user account that has access.

[7/14/2021, 8:23:03 AM] SPGo enabled. [7/14/2021, 8:23:03 AM] SPGo enabled [7/14/2021, 8:23:22 AM] ================================ ERROR ================================ [7/14/2021, 8:23:22 AM] 401 - undefined [7/14/2021, 8:23:22 AM] Error Detail: [7/14/2021, 8:23:22 AM] ---------------------- [7/14/2021, 8:23:22 AM] StatusCodeError: 401 - undefined [7/14/2021, 8:23:22 AM] ===============================================================================

SPGP.json with customized sharePointSiteUrl... { "sourceDirectory": "src", "sharePointSiteUrl": "https://sp16.(ourdomain).com", "workspaceRoot": "c:\sp16Prod", "publishWorkspaceOptions": { "destinationFolder": "/", "globPattern": "c:\sp16Prod\src\*\*.", "localRoot": "c:\sp16Prod\src" }, "publishingScope": "None", "authenticationType": "NTLM", "storeCredentials": true, "remoteFolders": [ "/DataConnection/*" ] }

Appreciate your help. Thanks, -Rob

AlbertZoto commented 1 month ago

Is there a way to download an entire SharePoint Site?

For example, using something like: "remoteFolders": [ "/ . " , (I deliberately put some spaces to avoid bold or italic) "/ / " (I deliberately put some spaces to avoid bold or italic) ]

Is there a way to stop the populate command from spinning? I guess I put wrong parameters in the remoteFolders definition: "remoteFolders": [ "/SitePages/", "/_catalogs/masterpage/*.", "/_catalogs/ . *" (I deliberately put some spaces to avoid bold or italic) ]

populate