diff --git a/lib/db/clickhouse.js b/lib/db/clickhouse.js index 369212f4..6e779d60 100644 --- a/lib/db/clickhouse.js +++ b/lib/db/clickhouse.js @@ -1368,7 +1368,12 @@ const rawRequest = async (query, data, database, config) => { (data ? `query=${encodeURIComponent(query)}` : null) ].filter(p => p) const url = `${getClickhouseUrl()}/${getParams.length ? `?${getParams.join('&')}` : ''}` - return await axios.post(url, data || query, config) + const config = { + method: 'post', + url: url, + data: data || query + } + return await axios(config) } catch (e) { logger.error('rawRequest error: ' + query) e.response?.data && logger.error(e.response.data.toString())