Attached is the patch to fix "Query Tool Initialization Error" which occurs on opening query tool for some users.
The problem was, request data was sent from client but was not read by back end service. In flask, if you receive POST data in a request you must read it before returning a response.
Also removed a dead code, which was not referred/used anywhere.
Kindly review.
--
Thanks and Regards,
Aditya Toshniwal
Software Engineer | EnterpriseDB Software Solutions | Pune