Skip to content

Spwan ENAMETOOLONG #176

Open
Open

Description

@gwang74

XMLHttpRequest throws an error 'Spawn ENAMETOOLONG' run with windows 10 while send a long string data.

var syncProc = spawn(process.argv[0], ["-e", execString]);

i think it cause by CMD arguments length limit in windows.
i try to use like this

fs.writeFileSync(execFile, execString, "utf8");
var syncProc = spawn(process.argv[0], [execFile]);

is successfully run.

So could you support running with long string data in Windows?

Activity

  1. Nvillaluenga commented on Feb 2, 2024

    @Nvillaluenga

    I have this same issue can we use something like "cross-spawn"

    here for example: https://github.com/driverdan/node-XMLHttpRequest/blob/master/lib/XMLHttpRequest.js#L15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions