fix issue with undefined stacktrace and http methods