MaxMelcher / AzureDevOps.WikiPDFExport

Export Azure DevOps Wiki to PDF
MIT License
191 stars 65 forks source link

Error: stdout maxBuffer exceeded #44

Closed yfrindel closed 3 years ago

yfrindel commented 3 years ago

Hi, any idea why I have this error please? : ##[error]Error: stdout maxBuffer exceeded image Regards

MaxMelcher commented 3 years ago

Are you exporting a very large (1000+ pages) wiki? Or a lot of folders?

You are using the DevOps task, right? I think that adds -v automatically and the converter is pretty verbose as of now, maybe that is the issue of this.

If you execute the converter in a powershell task then it might go away. You can adjust the following to your needs:

$version = 'v2.8.0'
$url = "https://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/releases/download/$version/azuredevops-export-wiki.exe"

    $output = "azuredevops-export-wiki.exe"

    $ProgressPreference = 'SilentlyContinue'
    Invoke-WebRequest -Uri $url -OutFile $output

    ./azuredevops-export-wiki.exe -o "$(Build.ArtifactStagingDirectory)\wiki.pdf"
yfrindel commented 3 years ago

I have 404 files with the ".md" extension, and 1043 files (61 MB) in the ".attachments" folder. And yes, I'm using the DevOps task. I tried locally with the version 2.9.0, but I have a "stack overflow" error message : image

yfrindel commented 3 years ago

image

yfrindel commented 3 years ago

I found 2 empty lines at the end of an ".order" file : image It's fixed since I removed these empty lines ! These case should be managed I think...

MaxMelcher commented 3 years ago

Thanks - will be fixed soon.