Skip to content

TypeError: fetch failed] { cause: [Error: AggregateError] } #127

Open
@tapz

Description

@tapz

Steps to reproduce

const sql = neon(process.env.POSTGRES_URL_NON_POOLING);
return await sql(query, params);

Expected result

Return rows

Actual result

Error

Environment

Vercel Edge Runtime

Logs, links

Work with Kysely and Pool, but this does not work:

const sql = neon(process.env.POSTGRES_URL_NON_POOLING);
return await sql(query, params);
[NeonDbError: Error connecting to database: fetch failed] {
  name: 'NeonDbError',
  severity: undefined,
  code: undefined,
  detail: undefined,
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: undefined,
  line: undefined,
  routine: undefined,
  sourceError: [TypeError: fetch failed] { cause: [Error: AggregateError] }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions