Bug when call platform.api.post two times in row


#1

Hello,

I found one where strange bug (dreamfactory version 12.0.2). I created one service that is “Script” type, and in script, I have, for example, this two two line of code
db_res = platform.api.post( “service_pg/_func/wx_lib4.wx_login”, db_params);
db_res1 = platform.api.post( “service_pg/_func/wx_lib4.wx_login”, db_params);

When I have only first line of code (db_res = platform…), everything is good, but, when I want to call same or some other functions from service “service_pg”, I got error “Whoops, looks like something went wrong.”. In log file, there is also error “[2018-10-10 15:20:22] local.ERROR: Call to a member function prepare() on null {“exception”:”[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function prepare() on null at /home/stefan/dreamfactory-2.12.0-2/apps/dreamfactory/htdocs/vendor/dreamfactory/df-database/src/Components/Schema.php:1268)"} " .

Regards,
Stefan