Skip to content

Errors on start with many repos #45

@motionsuggests

Description

@motionsuggests

I have a docusaurus config with 20+ instances of this plugin with a varying amount of documents for each. On start it errors out.

Error

[ERROR] Error: read ECONNRESET
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)

I'm using Constant Sync mode.

Sample of one of the configs:

'docusaurus-plugin-remote-content',
{
    // options here
    name: 'unique.name',
    sourceBaseUrl: 'github.enterprise.url', // some are public github urls
    outDir: 'docs/unique.name',
    documents: [
      'README.md',
      'docs/QuickStart.md',
    ], // most have one or two files and a couple have 15+ files
    modifyContent(filename, content) {
      // flattening the docs/ files and fixing some urls
    }
}

My guess is that this many connections isn't compatible with Constant Sync mode because of the number of connections.

My current work around is to use CLI Sync mode.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions