estruyf / doctor

Doctor - Maintain your documentation on SharePoint without pain.
http://getdoctor.io
MIT License
112 stars 17 forks source link

"Process markdown files" hangs[BUG] #155

Open yuxin1234 opened 7 months ago

yuxin1234 commented 7 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. doctor publish --outputFolder .
  2. login to Microsoft Device Login using code provided
  3. "Process markdown files" hangs for 30 min
  4. There is no output in the output folder

Expected behavior

  1. Process markdown files work.
  2. There are output in output folder

Screenshots image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

yuxin1234 commented 7 months ago

@estruyf Could you please look into the bug? Thanks.

DennisRutherford commented 6 months ago

can confirm i'm having the same issue. Reproduced from a docker container - node:lts

estruyf commented 6 months ago

@yuxin1234 @DennisRutherford could you try to run doctor publish --debug to see if it gives more information on why it hangs?

estruyf commented 6 months ago

I just released version 1.12.0, which now supports Node.js version 18 and higher. If you could update to the latest version and test it again, that would be great.

DennisRutherford commented 6 months ago

Can confirm that latest version is now working to publish

estruyf commented 6 months ago

Thanks @DennisRutherford for verifying

DennisRutherford commented 6 months ago

@estruyf Happy to help. I've got another issue where this is happening again. If I try and use certificate based authentication it gets stuck; but if I use device code it works fine. Any ideas?

DennisRutherford commented 6 months ago

with debug I don't seem to get much output certificate output image

deviceCode output image

yuxin1234 commented 5 months ago

@estruyf Thanks for fixing it. Still hanging for me after I upgraded to 1.12.0.

estruyf commented 5 months ago

@yuxin1234 What do you get when you add the --debug flag?

Can you give more information about your environment? Node version, ...

yuxin1234 commented 5 months ago

@estruyf Below is the screenshot for running "doctor publish --debug":

doctor-2

Node: 18.0.0 Platform: Windows 10 Thanks.

estruyf commented 5 months ago

Ah, I see you are not using SharePoint Online, but your own server. That might be the issue. As I have no access to an on-prem server, I won't be able to test out that use-case.

yuxin1234 commented 5 months ago

@estruyf Thanks.