Basically, we are fetching csv data from backend endpoint which streams data as csv. Now, query we are doing on backend is quite expensive, so sometimes it lasts 2-3 mins and it can’t load on Flexmonster component. I was wondering if there is any timeout set there or can it be increased to allow this?
Thank you in advance.
Thank you for posting your question.
In case your query takes up a lot of time before the data streaming is even started, we’d suggest returning an empty response to the client-side before the query is executed. Be sure not to close it yet so that the streaming can start once the query results are retrieved.
In case this does not help, we’d also suggest making sure you are not trying to stream the whole query response at once – instead, consider writing it in smaller chunks so that the timeout exception is not triggered.
Please let us know if this helps.