Replies: 1 comment
-
@dev-exsis: I'm curious: would you be able to create a test case for it, so that the fix is easily verified? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The postgres library (version 3.5.6) incorrectly throws
FormatException: Missing extension byte (at offset 10)
when authentication fails, instead of showing a clear authentication error message.Expected Behavior
Actual Behavior
FormatException: Missing extension byte (at offset 10)
Steps to Reproduce
Root Cause Analysis
The issue occurs in the authentication flow:
PostgreSQL Authentication Flow:
Where the Bug Occurs:
FormatException: Missing extension byte
Why Offset 10:
Comparison with Other Libraries
Libraries that work correctly:
postgres Dart 3.5.6:
Impact
Environment
Suggested Solutions
Workaround
Files Affected
lib/src/v3/connection.dart
(line 1240)_AuthenticationProcedure
classThis bug makes debugging authentication issues unnecessarily difficult and should be fixed to provide clear, actionable error messages.
You can copy this and paste it directly into a GitHub issue for the postgres library repository.
Beta Was this translation helpful? Give feedback.
All reactions