API server with Postgres on Deno Deploy ConnectionParamsError
Hi everyone,
I’ve been following the "API server with Postgres" tutorial (https://docs.deno.com/deploy/tutorials/tutorial-postgres/) and have set everything up successfully. For my project, I decided to go with Supabase. However, when I try to test the setup in the playground, I’m running into an error:
ConnectionParamsError: Missing connection parameters: database at assertRequiredOptions (https://deno.land/x/postgres@v0.19.3/connection/connection_params.ts:250:11) at createParams (https://deno.land/x/postgres@v0.19.3/connection/connection_params.ts:538:3) at new Pool (https://deno.land/x/postgres@v0.19.3/pool.ts:100:31) at file:///src/main.ts:11:14this isn't mentioned anywhere how you would to this, the only env variable I've set is the one mentioned in the tutorial, has anyone tried this one before and can help me? I even tried a slightly different setup which fails in the same way The screenshot is displayed next to the playground editor

1 Reply
I found my mistake—it was caused by my password containing special characters that are not valid in a URL. This led to the admittedly confusing error. I'm now doing something like this: