You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the following code (make sure that the connection credentials are incorrect)
import*asSqlfrom"@effect/sql";import*asPgfrom"@effect/sql-pg";import{Config,Effect}from"effect";constSqlLive=Pg.client.layer({database: Config.succeed("inventory")});constprogram=Effect.gen(function*(){yield*Effect.log("Connecting to SQL...");constsql=yield*Sql.client.Client;yield*Effect.log("Connected to SQL!");constpeople=yield*sql<{readonlyid: number;readonlyname: string;}>`SELECT id, name FROM people`;// Hangs here ^yield*Effect.log(`Got ${people.length} results!`);}).pipe(Effect.scoped);program.pipe(Effect.provide(SqlLive),Effect.runPromise);
What is the expected behavior?
The error gets logged, or gets returned up.
What do you see instead?
Nothing from the Effect code, but my PostgreSQL server is spitting out authentication errors.
What version of Effect is running?
3.1.3
What steps can reproduce the bug?
What is the expected behavior?
The error gets logged, or gets returned up.
What do you see instead?
Nothing from the Effect code, but my PostgreSQL server is spitting out authentication errors.
Additional information
The text was updated successfully, but these errors were encountered: