use 'with session.no_autoflush' to disable auto flush
make error report in json