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
Flask crashes when static files are served (ProgrammingError: Recursive use of cursors not allowed) #36
Comments
Hi nlohmann, Thanks |
We could not resolve the issue and decided to stop using Flask Profiler. |
Oh I am putting a fix and let you know if it works. However, did you get any other open source project to do the same. |
No, we implemented some profiling ourselves. Nothing fancy, and a plugin like this would be appreciated. |
Was a solution for this problem found? I'm getting something very similar and cant figure it out.
|
The problem here is with a shared sqlite3 cursor.
https://stackoverflow.com/questions/26629080/python-and-sqlite3-programmingerror-recursive-use-of-cursors-not-allowed If this is the reason, using another storage will fix the problem. |
FWIW, I was using flask-profiler 1.7 all this while and didnt face an issue for a year. I just moved to 1.8.1 and am seeing it multiple times. |
same to me. error on 1.8.1, but works fine on 1.7 |
When I enable the flask-profiler, the app crashes when files from the
static
folder are served:I first though that this is, because requests to
/static
are not mentioned in the app routes, but also with a route withreturn app.send_static_file('index.html')
I get the same error. All other routes (none are serving files fromstatic
) run fine.I am using:
I am happy to provide more information if needed.
The text was updated successfully, but these errors were encountered: