wisercoder

Results comments of wisercoder

I am using .NET Framework. If it is not coming from the driver then it might be coming from .NET Framework (unlikely) or the Postgres online database I am using....

Here's the stack trace: **Npgsql.PostgresException** ``` at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at Npgsql.Internal.NpgsqlConnector.Authenticate(String username, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken) at Npgsql.Internal.NpgsqlConnector.g__OpenCore|212_1(NpgsqlConnector conn,...

I agree. I have not faced this issue with Neon, so this seems like a Supabase-specific issue.

Here's the repro: ``` using System; using System.Data; using System.Data.Common; using Npgsql; using NpgsqlTypes; class Program { static string connectionString = "Host=XXX;Username=YYY;Password=ZZZ;Database=QQQ"; static async Task Setup() { using var connection...

Note that this repro is not the only way to reproduce the issue. Just google for PosrgreSQL Exception while reading from stream. Given how common the issue is, it would...

Here's the stack for this particular repro: ``` Unhandled exception. Npgsql.NpgsqlException (0x80004005): Exception while reading from stream ---> System.TimeoutException: Timeout during reading attempt at Npgsql.Internal.NpgsqlReadBuffer.g__EnsureLong|55_0(NpgsqlReadBuffer buffer, Int32 count, Boolean async,...

I think you are right. For what it is worth, MySQL has a slightly better error message in the same situation: MySqlConnector.MySqlException (0x80004005): Failed to read the result set. This...

Similar situation when the initial connection fails: Postgres: `Unhandled exception. System.Net.Sockets.SocketException (11001): No such host is known.` MySQL: `MySqlConnector.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.`...

I have more data. I compared with Microsoft SQL Server. Exceptions from SQL Server appear to be always a subclass of `Microsoft.Data.SqlClient.SqlException`. For example, if initial connection fails you get...

When initial connection fails I get `System.Net.Sockets.SocketException (11001): No such host is known.` which is not `NpgsqlException`. Here's the stack trace: ``` Unhandled exception. System.Net.Sockets.SocketException (11001): No such host is...