Skip to content

TypeError: fetch failed #143

@artem-zinnatullin

Description

@artem-zinnatullin

We got an error in Post step

Error: TypeError: fetch failed
Error: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
node:internal/deps/undici/undici:15845
      Error.captureStackTrace(err);
            ^

TypeError: fetch failed
    at node:internal/deps/undici/undici:15845:13
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async index (/home/ubuntu/_work/_actions/dev-hato/actions-workflow-metrics/44bffcdf2878b7fd0d46fcdaedfae7fb40dee5d4/src/post/index.ts:72:29)
    at async <anonymous> (/home/ubuntu/_work/_actions/dev-hato/actions-workflow-metrics/44bffcdf2878b7fd0d46fcdaedfae7fb40dee5d4/src/post/index.ts:90:1) {
  [cause]: AggregateError [ECONNREFUSED]:
      at internalConnectMultiple (node:net:1134:18)
      at afterConnectMultiple (node:net:1715:7) {
    code: 'ECONNREFUSED',
    [errors]: [
      Error: connect ECONNREFUSED ::1:7777
          at createConnectionError (node:net:1678:14)
          at afterConnectMultiple (node:net:1708:16) {
        errno: -111,
        code: 'ECONNREFUSED',
        syscall: 'connect',
        address: '::1',
        port: 7777
      },
      Error: connect ECONNREFUSED 127.0.0.1:7777
          at createConnectionError (node:net:1678:14)
          at afterConnectMultiple (node:net:1708:16) {
        errno: -111,
        code: 'ECONNREFUSED',
        syscall: 'connect',
        address: '127.0.0.1',
        port: 7777
      }
    ]
  }
}

Node.js v24.11.1

Version 44bffcd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions