-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accidental errors : [cppcms_error] Access to unassigned context #78
Comments
Can you provide more details - content of the error log? What are you doing. This exception is thrown when you try to use application().context() or any stuff that requies it (like sessions request/reponse) outside the scope of actual request - i.e. when there is no active request for the application. Do you have stack trace? (usually it prints it if you use MSVC + Debug Info) |
I have a c++ client remote call EchoController throught httplib. sometimes throw this exception :-(code: void EchoController::echo() if (request().request_method() == "POST") <==this line throw exception =========== |
ENV:
win10/nginx-1.15.9/fastcgi/cppcms-2.0.0.beta2|1.2.1
only sometimes occur.
How to solve this problem? I need help, thanks.
The text was updated successfully, but these errors were encountered: