Unexpected EOF in POST response

I’m working on akumuli-grafana plugin and have the following issue. If the client sends query using POST http request and query returns data, everything works fine. But if the query doesn’t return data Grafana puts the following message to the log:

t=2020-06-08T13:32:00+0200 lvl=eror msg=“Data proxy error” logger=data-proxy-log userId=1 orgId=1 uname=admin path=/api/datasources/proxy/1/api/query remote_addr=172.21.0.254 referer=“http://localhost:3002/d/6F7tvU1Z1/eurotech-summary-view?tab=queries&panelId=4&edit&fullscreen&orgId=1&from=now-5m&to=now&var-host=pcalc-10-A119K430001&var-samp=1m&var-process_name=All&var-uid=All” error=“httputil: ReverseProxy read error during body copy: unexpected EOF”
t=2020-06-08T13:32:00+0200 lvl=eror msg=“Request error” logger=context userId=1 orgId=1 uname=admin error=“net/http: abort Handler”
t=2020-06-08T13:32:00+0200 lvl=eror msg=“Data proxy error” logger=data-proxy-log userId=1 orgId=1 uname=admin path=/api/datasources/proxy/1/api/query remote_addr=172.21.0.254 referer=“http://localhost:3002/d/6F7tvU1Z1/eurotech-summary-view?tab=queries&panelId=4&edit&fullscreen&orgId=1&from=now-5m&to=now&var-host=pcalc-10-A119K430001&var-samp=1m&var-process_name=All&var-uid=All” error=“httputil: ReverseProxy read error during body copy: unexpected EOF”
t=2020-06-08T13:32:00+0200 lvl=eror msg=“Request error” logger=context userId=1 orgId=1 uname=admin error=“net/http: abort Handler”

The problem is that my POST query doesn’t return anything, the response is empty and the status code is 200. The question: how should I fix this? Can I fix this by making the request in a different way in the plugin or I’ll have to change the code of the database?