Comments (8)
ServerVersion must not contain error - if it does, it means the connection was not initialized properly (as version is required for feature toggles). Can you tell me how you receive this error?
from clickhouse.client.
I`ve got this error when server was low on memory and no queries could be run.
i've put version parse afeter openAsync and got this
try
{
Version.Parse(con.ServerVersion);
}
catch (Exception ex)
{
throw new Exception(
$"Could not parse server version from clickhouse! ver ({con.ServerVersion}). {ex.Message}");
}
"Could not parse server version from clickhouse! ver (Code: 241, e.displayText() = DB::Exception: Memory limit (total) exceeded: would use 3.47 GiB (attempt to allocate chunk of 4256108 bytes), maximum: 3.47 GiB: While executing TabSeparatedRowOutputFormat (version 20.10.3.30 (official build))). Version string portion was too short or too long. (Parameter 'input')"
from clickhouse.client.
Ok, I see your point - this error should have been indicated earlier, will fix
from clickhouse.client.
What I find weird, however, is that there should have been an exception a few lines earlier in OpenAsync
, because the error should not have had a successful return code. Do you have any other code modifications there?
from clickhouse.client.
Nope, just this
var con = new ClickHouseConnection(_connectionString);
await con.OpenAsync(token);
if (con.State != ConnectionState.Open)
throw new Exception($"Could not open clickhouse connection. ver ({con.ServerVersion})");
try
{
Version.Parse(con.ServerVersion);
}
catch (Exception ex)
{
throw new Exception(
$"Could not parse server version from clickhouse! ver ({con.ServerVersion}). {ex.Message}");
}
from clickhouse.client.
Ok, must be a ClickHouse issue then - it should have returned a non-successful HTTP code.
In this case looks like it didn't, otherwise response.EnsureSuccessStatusCode();
would have thrown.
Will be fixed in next release
from clickhouse.client.
ok, thanks!
from clickhouse.client.
Fixed in 3.0
from clickhouse.client.
Related Issues (20)
- New ClickHouse type HOT 1
- Readact Connection String in Tracing HOT 1
- How to use HOT 1
- how to use bulkcopy HOT 1
- SSH tunnel connection HOT 1
- insert .. select from query with Kafka engine breaks down the server. HOT 3
- Unable to read data from the transport connection HOT 2
- The DecimalType scale defaults to 0 HOT 7
- Error when executing a bulk insert - Value was either too large or too small for a UInt16. HOT 2
- Understanding connection lifetime & pooling
- Incorrect conversion of ClickHouseDecimal to intger types HOT 2
- NestedType problem. HOT 2
- Add random structure tests
- Insert two fields with the common prefix HOT 1
- BulkCopy not raising exception on big datasets HOT 10
- [bug] BulkInsert intermittently fails HOT 7
- handling of Nullable types. HOT 1
- Bulk Insertion not working with Geo Data Types
- Incorrect conversion to Decimal type HOT 1
- Request hangs until timeout if the previous request has thrown an exception HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse.client.