python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Flask app request body added to http method on GET calls (only every other request)
When GETting a resource in a Flask app from Postman for Windows Version 9.15.10, the request body seems to mess up the parsing of the HTTP request. There are two slightly different behaviours dependin...
tscherg
Votes: 0
Answers: 0
flask _app_ctx_stack.__ident_func__ error due to __ident_func__ deprecated in werkzeug 2.1
I was using _app_ctx_stack.__ident_func__ for sqlalchemy scoped_session for accessing sqlalchemy models inside flask, without using flask sqlalchemy.
scoped_session(session_local, scopefunc=_app_ctx_s...
Shivam Chaurasia
Votes: 0
Answers: 1
werkzeug.exceptions.ClientDisconnected: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand
code(python):
try:
xxx
try:
post_dic = request.get_json()
req_ip = request.remote_addr
except Exception as error:
logging.error(&qu...
norkey
Votes: 0
Answers: 0
ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security'
Any ideas on why I get this error?
My project was working fine. I copied it to an external drive and onto my laptop to work on the road; it worked fine. I copied it back to my desktop and had a load o...
prosody
Votes: 0
Answers: 6