spgo icon indicating copy to clipboard operation
spgo copied to clipboard

SPGo not showing any error information

Open evansjustindev opened this issue 4 years ago • 12 comments

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.

evansjustindev avatar Mar 12 '20 16:03 evansjustindev

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?

chrishasz avatar Mar 14 '20 01:03 chrishasz

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

grafik

RedX2501 avatar May 28 '20 10:05 RedX2501

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.

chrishasz avatar May 31 '20 06:05 chrishasz

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 :)

RedX2501 avatar Jun 02 '20 06:06 RedX2501

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.

chrishasz avatar Jun 04 '20 20:06 chrishasz

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'.

RedX2501 avatar Jun 05 '20 13:06 RedX2501

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!

chrishasz avatar Jun 13 '20 06:06 chrishasz

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

RedX2501 avatar Jun 15 '20 08:06 RedX2501

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 avatar Jun 15 '20 22:06 chrishasz

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

chrishasz avatar Dec 17 '20 06:12 chrishasz

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, [email protected] 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 .

RedX2501 avatar Dec 25 '20 17:12 RedX2501

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

rpatton16 avatar Jul 14 '21 15:07 rpatton16