-
Hello everyone, I have this warning in the sqlpage promp : [2024-06-21T20:06:11.310Z ERROR sqlpage::webserver::http] Could not flush data to client: no available capacity. I'm using a map component that gets a geojson of the geometry in a spatialite database but the map does not work. I tried to find geometric errors but everything seems in good health... Thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
This error happens when your database emits a lot of data very quickly, and the web browser isn't able to download it fast enough. In this case, SQLPage will store the database's responses in memory while waiting for the client to download it. But it won't accept to store an arbitrarily large amount of data in memory, in order not to penalize other clients that may want to use the server at the same time. So, when the database has emitted more than 128 messages and the client hasn't downloaded them, sqlpage will throw an error. This limit of 128 is called But, knowing your application, I think the underlying problem is that you are trying to load a lot of data into a single map. What we could ideally do in SQLPage is to allow the map component to load data "on-demand", so that only the data located in the part of the map that you are currently viewing is loaded. |
Beta Was this translation helpful? Give feedback.
-
Thanks, what's strange, it's that the map works well on a page, but not on another (ok for emprise, not for fait). And the amount of data in my case is not so big (221 polygon geometries). Really less than Noisy. |
Beta Was this translation helpful? Give feedback.
-
ok, despite the 0.24 version, the problem was the same. The map component refuses to load, but there was no message in the prompt. |
Beta Was this translation helpful? Give feedback.
This error happens when your database emits a lot of data very quickly, and the web browser isn't able to download it fast enough. In this case, SQLPage will store the database's responses in memory while waiting for the client to download it. But it won't accept to store an arbitrarily large amount of data in memory, in order not to penalize other clients that may want to use the server at the same time. So, when the database has emitted more than 128 messages and the client hasn't downloaded them, sqlpage will throw an error. This limit of 128 is called
MAX_PENDING_MESSAGES
, and is currently hardcoded. I'll make it configurable in the next version so that you can increase it if you want.…