https://issues.qgis.org/https://issues.qgis.org/favicon.ico2008-04-13T06:22:11ZQGIS Issue TrackingQGIS Application - Bug report #1039: PostGIS: unclear error message connecting to a wrong porthttps://issues.qgis.org/issues/1039?journal_id=167182008-04-13T06:22:11ZJürgen Fischerjef@norbit.de
<ul><li><strong>Resolution</strong> set to <i>wontfix</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Does the error message get truncated like that? I get</p>
<pre>
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "192.168.49.12" and accepting
TCP/IP connections on port 5433?
</pre>
<p>which seems pretty clear. But I guess in your case there is something listing on the port you try to connect which even supports SSL as I get</p>
<pre>
received invalid response to SSL negotiation: 2
</pre>
<p>when connecting a SMTP port w/o SSL.</p>
<p>Anyway, those error messages are returned by the postgres client library and passed on to the user as that is all we known and therefore probably the best we can do.</p> QGIS Application - Bug report #1039: PostGIS: unclear error message connecting to a wrong porthttps://issues.qgis.org/issues/1039?journal_id=167192008-04-13T07:35:01ZMaciej Sieczka -tutey@o2.pl
<ul></ul><p>Replying to [comment:1 jef]:</p>
<blockquote>
<p>Does the error message get truncated like that?</p>
</blockquote>
<p>Exactly. All I get is:</p>
<pre>
Connection failed - Check settings and try again.
Extended error information:
expected authentication request from server, but received S
</pre>
<p>It was SSH port I tried to connect to by mistake.</p>
<p>I checked with <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/PgAdmin">PgAdmin</a>. It displays same cryptic message. Not a QGIS issue it seems. Sorry for the fuss.</p>
<p>BTW - localised messages are garbled when they contain non-ASCII chars. Eg. in PL UTF8 locale I get:</p>
<pre>
Connection failed - Check settings and try again.
Extended error information:
could not connect to server: Przekroczony czas oczekiwania na połączenie
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 22?
</pre>
<p>instead of:</p>
<pre>
Connection failed - Check settings and try again.
Extended error information:
could not connect to server: Przekroczony czas oczekiwania na połączenie
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 22?
</pre> QGIS Application - Bug report #1039: PostGIS: unclear error message connecting to a wrong porthttps://issues.qgis.org/issues/1039?journal_id=167202008-04-13T08:16:49ZJürgen Fischerjef@norbit.de
<ul></ul><p>i18n fixed in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/fd84dcc0bfc4ba4aa07e36ce734e5d5e51fab429" title="fix i18n part of #1039 git-svn-id: http://svn.osgeo.org/qgis/trunk@8347 c8812cc2-4d05-0410-92ff-...">fd84dcc0</a> (SVN r8348)</p> QGIS Application - Bug report #1039: PostGIS: unclear error message connecting to a wrong porthttps://issues.qgis.org/issues/1039?journal_id=167212009-08-21T22:54:06ZAnonymous
<ul></ul><p>Milestone Version 0.9.2 deleted</p>