You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling request.json in DELETE or POST calls I receive the following stack trace error:
Traceback (most recent call last):
File "/var/lang/lib/python3.8/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "/var/lang/lib/python3.8/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/var/lang/lib/python3.8/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/var/lang/lib/python3.8/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions [rule.endpoint])(**view_args)
File "/var/task/app.py", line 105, in delete_queue_messages
data = request.json
File "/var/lang/lib/python3.8/site-packages/werkzeug/wrappers/request.py", line 561, in json
return self.get_json()
File "/var/lang/lib/python3.8/site-packages/werkzeug/wrappers/request.py", line 611, in get_json
data = self.get_data(cache=cache)
File "/var/Lang/lib/python3.8/site-packages/werkzeug/wrappers/request.py", line 423, in get_data
rv = self.stream.read()
File */var/lang/lib/python3.8/site-packages/werkzeug/wsgi.py',line 829, in readall
data = self.read(1024 * 64)
File * /var/lang/lib/python3.8/site-packages/werkzeug/wsgi.py*,Line 810, in readinto
b[:out_size] = data
TypeError: can assign only bytes, buffers, or iterables of ints in range(0, 256)
As title suggests I am using main branch of flask-lambda, flask 2.3.2 and werkzeug 2.3.6.
When app is run locally as a regular Flask app the request.json call does not result in TypeError.
The text was updated successfully, but these errors were encountered:
When calling request.json in DELETE or POST calls I receive the following stack trace error:
As title suggests I am using main branch of flask-lambda, flask 2.3.2 and werkzeug 2.3.6.
When app is run locally as a regular Flask app the request.json call does not result in TypeError.
The text was updated successfully, but these errors were encountered: