-
Notifications
You must be signed in to change notification settings - Fork 391
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
C# MongoDB driver: "no PostgreSQL user name specified in startup packet" #4065
Labels
Milestone
Comments
Evengard
added
code/bug
Some user-visible feature works incorrectly
not ready
Issues that are not ready to be worked on; PRs that should skip CI
labels
Feb 12, 2024
Please note that I'm using this postgresql setting:
I explicitely did not provide a username and password here, as I need to restrict anonymous logins completely. |
9 tasks
What is your driver version? |
As I said in the PR, it is 2.23.1 |
First of all, we should be able to reproduce that issue with dance. That's on @b1ron (FerretDB/dance#769) |
9 tasks
9 tasks
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FerretDB version
1.19.0
Backend
PostgreSQL 15.2
Environment
What did you do?
I either can't authenticate at all (if not using StableAPI), or can't Insert documents (if using the StableAPI).
Consider this sample which will fail no matter if I set StableAPI or not:
If I run it as it is, I get
'Command insert failed: insert: unknown field "apiVersion".'
, which seems to be related to #3121If I run it without the line
mongoClientSettings.ServerApi = new ServerApi(ServerApiVersion.V1);
which sets the StableAPI, I then get:'Command insert failed: [msg_insert.go:169 handler.(*Handler).MsgInsert] [collection.go:123 postgresql.(*collection).InsertAll] [registry.go:479 metadata.(*Registry).CollectionCreate] [registry.go:132 metadata.(*Registry).getPool] [pool.go:128 pool.(*Pool).Get] [opendb.go:95 pool.openDB] [opendb.go:110 pool.checkConnection] failed to connect to
host=postgres-db-rw.postgres.svc.cluster.local user= database=dm3_ferret_dev: server error (FATAL: no PostgreSQL user name specified in startup packet (SQLSTATE 28000)).'
Which looks like the username from the client isn't passed down to the Postgres server.
What did you expect to see?
I expect it to work at least with some settings...
The text was updated successfully, but these errors were encountered: