print stacktrace for uncaught error
fix error when acceptencoding is null