Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgres client cannot connect correctly #6477

Open
6 tasks done
himself65 opened this issue Sep 12, 2024 · 2 comments
Open
6 tasks done

postgres client cannot connect correctly #6477

himself65 opened this issue Sep 12, 2024 · 2 comments

Comments

@himself65
Copy link

Describe the bug

I was using vitest to init postgres client and do some unit test but it crash on CI with some weird errors.

error: no PostgreSQL user name specified in startup packet

https://github.com/run-llama/LlamaIndexTS/actions/runs/10821140357/job/30022585957?pr=1186

But I move the code into node test runner it works well.

commit: run-llama/LlamaIndexTS@9fdbecf

Reproduction

import pg from "pg";
import { describe, expect, test } from "vitest";

describe("pg - init", () => {
  test("init with client", async () => {
    const client = new pg.Client({
      database: "node_test",
    });
    await client.connect();
  });
});

System Info

GitHub Action ubunutu-latest

Used Package Manager

pnpm

Validations

@hi-ogawa
Copy link
Contributor

I have to guess this is some infra setup issue like environment variable with github action ankane/setup-postgres or something. I don't think we can really debug your project's CI, so please prepare something more minimal.

Copy link

Hello @himself65. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.

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

No branches or pull requests

2 participants