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
Evengard opened this issue
Feb 12, 2024
· 5 comments
· May be fixed by #4066
Assignees
Labels
code/bugSome user-visible feature works incorrectlycommunityIssues and PRs assigned to community membersnot readyIssues that are not ready to be worked on; PRs that should skip CI
If I run it as it is, I get 'Command insert failed: insert: unknown field "apiVersion".', which seems to be related to #3121
If 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 tohost=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:
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
code/bugSome user-visible feature works incorrectlycommunityIssues and PRs assigned to community membersnot readyIssues that are not ready to be worked on; PRs that should skip CI
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: