GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix SASL to bubble up errors, enable SASL tests in CI, and add informative empty SASL password message by sehrope · Pull Request #2901 · brianc/node-postgres

Conversation

@sehrope

@sehrope sehrope commented Jan 23, 2023

Copy link
Copy Markdown
Contributor

Couple of SASL related commits here:

  1. Enables SASL testing in GitHub actions CI.
  2. Adds a basic unit test for SASL password being a string.
  3. Catches SASL handling errors and bubbles them up as error events.
  4. Adds an explicit check to the SASL handling for an empty password so the user gets an informative email.

Number 3 should actually close out #2757. Interestingly this was brought up in 2019 when the SASL code was first added: #1927. This should close that out too.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
sehrope added 4 commits January 23, 2023 08:57
@sehrope
Enable SASL tests in GitHub actions CI
a441469
@sehrope
Add SASL test to ensure that client password is a string
99817f7
@sehrope
Fix SASL error handling to emit and bubble up errors
bb36f56
@sehrope
Add informative error when SASL password is empty string
ec9be19
@sehrope sehrope mentioned this pull request Jan 23, 2023
Add informative SASL empty password error message #2899
Closed
@brianc

brianc commented Jan 23, 2023

Copy link
Copy Markdown
Owner

aww thank you, this is an awesome change! 💃 Will get this merged & pushed out ASAP!

sehrope, verycosy, and Prasad1-S reacted with hooray emoji
All reactions
  • 🎉 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brianc
brianc merged commit bb8745b into brianc:master Jan 23, 2023
@charmander charmander mentioned this pull request Jan 28, 2023
CI problems with password in v8.9.0 #2904
Closed
@verycosy

verycosy commented Feb 3, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

AWESOME! Thank you for your commits

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shleeable shleeable mentioned this pull request Feb 23, 2023
[Dependashlee] Bump pg from 8.5.0 to 8.11.0 (JS) mastodon/mastodon#23815
Closed
@Prasad1-S

Prasad1-S commented Mar 13, 2026

Copy link
Copy Markdown

I hit this exact error today when my DB_PASSWORD env var was undefined. The current message client password must be a string sent me in the wrong direction — I was looking at my login logic instead of my DB connection config.

The empty string improvement in this PR is great, but the undefined case still has the same unhelpful message. Would a PR that improves it to something like client password must be a string (received undefined — is your DB_PASSWORD environment variable set?) be welcome?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@sehrope @brianc @verycosy @Prasad1-S
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.